Exemple #1
0
 def testSayHasCallableParams(self, mock_sample, mock_template):
     routes.say('YESOCH', 10)
     mock_sample.assert_called_with(10)
     mock_template.assert_called_with('yesoch')
Exemple #2
0
 def testSayHasDefaultParams(self, mock_sample, mock_template):
     routes.say()
     mock_sample.assert_called_with(routes.DEFAULT_MESSAGE_COUNT)
     mock_template.assert_called_with('talk')