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