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