Example #1
0
 def testDumpCommand_formatting(self):
     # user with a snippet should just get it back unformatted
     response = slacklib.command_dump('*****@*****.**')
     self.assertIn('#yolo', response)
Example #2
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)
Example #3
0
 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)
Example #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)
Example #5
0
 def testDumpCommand_formatting(self):
     # user with a snippet should just get it back unformatted
     response = slacklib.command_dump('*****@*****.**')
     self.assertIn('#yolo', response)
Example #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)
Example #7
0
 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)