def test_no_vote_count(self):
connection = ConnectionFactory()
url = reverse('connection-detail', kwargs={"pk":connection.id})
response = self.client.get(url).json()
self.assertEqual(response['vote_count'], 0)
评论列表
文章目录