瀏覽代碼

Make sure that the Pin object is created

tags/v1.0.0
Krzysztof Klimonda 11 年之前
父節點
當前提交
c1b23b4dd5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      pinry/api/tests.py

+ 1
- 0
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):


Loading…
取消
儲存