示例#1
0
 def testPanicBypassesMessageSaving(self, mock):
     routes.config('tag', 'abc')
     routes.panic()
     routes.process_outside_message('1234', 'this is tagged')
     mock.assert_called_with('1234', 'this is tagged')
示例#2
0
 def testPanicCallsSampleWithCount(self, mock):
     routes.panic(10)
     mock.assert_called_with(10)
示例#3
0
 def testPanicGetsPanicMessage(self, mock):
     routes.panic()
     mock.assert_called_with('panic')
示例#4
0
 def testPanicCallsSampleWithDefaultCount(self, mock):
     routes.panic()
     mock.assert_called_with(routes.DEFAULT_MESSAGE_COUNT)