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