Created
July 25, 2015 21:04
-
-
Save RobSpectre/6a047735bd0b152309f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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