示例#1
0
 def test_type_result(self):
     results = best_employee(db)
     self.assertIsInstance(results, tuple)
示例#2
0
 def test_amount_in_results(self):
     results = best_employee(db)
     self.assertTrue(7945.6 in results)
示例#3
0
 def test_first_name_in_results(self):
     results = best_employee(db)
     self.assertTrue('Patty' in results)
示例#4
0
 def test_last_name_in_results(self):
     results = best_employee(db)
     self.assertTrue('Lee' in results)
示例#5
0
 def test_length_results(self):
     results = best_employee(db)
     self.assertEqual(len(results), 3)