From c1b23b4dd5aacbf4f9ce5e1022db191175e00bcd Mon Sep 17 00:00:00 2001 From: Krzysztof Klimonda Date: Mon, 25 Feb 2013 16:07:58 -0800 Subject: [PATCH] Make sure that the Pin object is created --- pinry/api/tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pinry/api/tests.py b/pinry/api/tests.py index 29cd6cc..07cf354 100644 --- a/pinry/api/tests.py +++ b/pinry/api/tests.py @@ -82,6 +82,7 @@ class PinResourceTest(ResourceTestCase): self.assertHttpCreated(response) # A number of Image objects should stay the same as we are using an existing image self.assertEqual(Image.objects.count(), 2) + self.assertEqual(Pin.objects.count(), 3) self.assertEquals(Tag.objects.count(), 4) def test_get_list_json(self):