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