def test_count_job(self): count = JobModel.count() self.assertEqual(count, 2) count = JobModel.count(keyword_id=100) self.assertEqual(count, 2)
def count(cls, id=None, keyword_id=None): return JobModel.count(id=id, keyword_id=keyword_id)