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