Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created July 25, 2015 21:04
Show Gist options
  • Save RobSpectre/6a047735bd0b152309f5 to your computer and use it in GitHub Desktop.
Save RobSpectre/6a047735bd0b152309f5 to your computer and use it in GitHub Desktop.
from errbot.backends.test import testbot
from errbot import plugin_manager
class TestTwilioLookup(object):
extra_plugin_dir = '.'
def setUp(self):
self.plugin = plugin_manager.get_plugin_obj_by_name('TwilioLookup')
def test_lookup(self, testbot):
expected = "test"
self.bot.push_message("!lookup")
self.assertTrue(expected in self.bot.pop_message(),
"Did not get message 'test', instead: "
"{0}".format(self.bot.pop_message()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment