コード例 #1
0
ファイル: test_contact.py プロジェクト: hwayne/safehouse
 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
ファイル: test_contact.py プロジェクト: hwayne/safehouse
 def testPanicCallsSampleWithCount(self, mock):
     routes.panic(10)
     mock.assert_called_with(10)
コード例 #3
0
ファイル: test_contact.py プロジェクト: hwayne/safehouse
 def testPanicGetsPanicMessage(self, mock):
     routes.panic()
     mock.assert_called_with('panic')
コード例 #4
0
ファイル: test_contact.py プロジェクト: hwayne/safehouse
 def testPanicCallsSampleWithDefaultCount(self, mock):
     routes.panic()
     mock.assert_called_with(routes.DEFAULT_MESSAGE_COUNT)