Now using tastypie for all our API needs.

This commit is contained in:
Isaac Bythewood
2012-05-11 02:08:46 +00:00
parent d50e7ce596
commit 10ffd90760
9 changed files with 31 additions and 30 deletions

View File

@@ -6,10 +6,7 @@ from django.core.urlresolvers import reverse
class RecentPinsTest(TestCase):
def setUp(self):
self.client = Client()
self.url = reverse('api:pins-recent', args=[0])
def test_url(self):
self.assertEqual(self.url, '/api/pins/recent/0/')
self.url = '/api/pin/?format=json'
def test_status_code(self):
response = self.client.get(self.url)