コード例 #1
0
ファイル: slacklib_test.py プロジェクト: 13scoobie/snippets
 def testDumpCommand_formatting(self):
     # user with a snippet should just get it back unformatted
     response = slacklib.command_dump('*****@*****.**')
     self.assertIn('#yolo', response)
コード例 #2
0
ファイル: slacklib_test.py プロジェクト: 13scoobie/snippets
 def testDumpCommand_noAccount(self):
     # user without an account should get a helpful error message
     response = slacklib.command_dump('*****@*****.**')
     self.assertIn("You don't appear to have a snippets account", response)
     self.assertIn("Slack email address: [email protected]", response)
コード例 #3
0
ファイル: slacklib_test.py プロジェクト: 13scoobie/snippets
 def testDumpCommand_empty(self):
     # user without a recent snippet should just see null text
     response = slacklib.command_dump('*****@*****.**')
     self.assertIn('No snippet yet for this week', response)
コード例 #4
0
 def testDumpCommand_noAccount(self):
     # user without an account should get a helpful error message
     response = slacklib.command_dump('*****@*****.**')
     self.assertIn("You don't appear to have a snippets account", response)
     self.assertIn("Slack email address: [email protected]", response)
コード例 #5
0
 def testDumpCommand_formatting(self):
     # user with a snippet should just get it back unformatted
     response = slacklib.command_dump('*****@*****.**')
     self.assertIn('#yolo', response)
コード例 #6
0
 def testDumpCommand_empty(self):
     # user without a recent snippet should just see null text
     response = slacklib.command_dump('*****@*****.**')
     self.assertIn(models.NULL_SNIPPET_TEXT, response)
コード例 #7
0
ファイル: slacklib_test.py プロジェクト: yanokwa/snippets
 def testDumpCommand_empty(self):
     # user without a recent snippet should just see null text
     response = slacklib.command_dump('*****@*****.**')
     self.assertIn('No snippet yet for this week', response)