Пример #1
0
 def test_count_job(self):
     count = JobModel.count()
     self.assertEqual(count, 2)
     count = JobModel.count(keyword_id=100)
     self.assertEqual(count, 2)
Пример #2
0
 def count(cls, id=None, keyword_id=None):
     return JobModel.count(id=id, keyword_id=keyword_id)