コード例 #1
0
 def test_answerCallForFriendDifferentAreaCodeGoodTime(self):
     # Capture the results of the function
     result = answerCall.answerCall("F", False, "13:00")
コード例 #2
0
 def test_answerCallForRelativeDifferentAreaCodeGoodTime(self):
     # Capture the results of the function
     result = answerCall.answerCall("R", False, "16:00")
コード例 #3
0
 def test_answerCallForTelemarketerSameAreaCodeGoodTime(self):
     # Capture the results of the function
     result = answerCall.answerCall("T", True, "10:40" )
コード例 #4
0
 def test_answerCallForTelemarketerDifferentAreaCodeBadTime(self):
     # Capture the results of the function
     result = answerCall.answerCall("T", False, "23:00" )
コード例 #5
0
 def test_answerCallForUnknownDifferentAreaCodeGoodTime(self):
     # Capture the results of the function
     result = answerCall.answerCall("U", False, "14:00")
コード例 #6
0
 def test_answerCallForUnknownSameAreaCodeGoodTime(self):
     # Capture the results of the function
     result = answerCall.answerCall("U", True, "09:00")
     # Check for expected output
     self.assertEqual(True, result)
コード例 #7
0
 def test_answerCallForRelativeDifferentAreaCodeGoodTime(self):
     # Capture the results of the function
     result = answerCall.answerCall("R", False, "16:00")
     # Check for expected output
     self.assertEqual(False, result)
コード例 #8
0
 def test_answerCallForFriendDifferentAreaCodeBadTime(self):
     # Capture the results of the function
     result = answerCall.answerCall("F", False, "23:00")
     # Check for expected output
     self.assertEqual(False, result)
コード例 #9
0
 def test_answerCallForTelemarketerSameAreaCodeGoodTime(self):
     # Capture the results of the function
     result = answerCall.answerCall("T", True, "10:40")
     # Check for expected output
     self.assertEqual(False, result)