def test_get_records(self): emp = Employee.get_one(7) self.assertEqual(2, len([rec for rec in emp.payrecords]))
def test_get_diffs(self): emp = Employee.get_one(7) self.assertEqual(2, len([diff for diff in emp.paydiffs]))
def test_get_one(self): emp = Employee.get_one(7) self.assertEqual("KERR,EVE A", emp.name)