Esempio n. 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')
Esempio n. 2
0
 def testPanicCallsSampleWithCount(self, mock):
     routes.panic(10)
     mock.assert_called_with(10)
Esempio n. 3
0
 def testPanicGetsPanicMessage(self, mock):
     routes.panic()
     mock.assert_called_with('panic')
Esempio n. 4
0
 def testPanicCallsSampleWithDefaultCount(self, mock):
     routes.panic()
     mock.assert_called_with(routes.DEFAULT_MESSAGE_COUNT)