예제 #1
0
def test_simple():
    module_wolfram_alpha.init(bot)
    query = "42"
    # Wolfram Alpha seems to randomly return also Roman numerals
    regex = u"(42 = forty-two|forty-two = XLII)"
    result = module_wolfram_alpha.command_wa(bot, None, "#channel", query)[1]
    check_re(regex, result)
예제 #2
0
def test_simple():
    module_wolfram_alpha.init(bot)
    query = "42"
    # Wolfram Alpha seems to randomly return also Roman numerals
    regex = u"(42 = forty-two|forty-two = XLII)"
    result = module_wolfram_alpha.command_wa(bot, None, "#channel", query)[1]
    check_re(regex, result)
예제 #3
0
def test_simple():
    module_wolfram_alpha.init(bot)
    query = "42"
    target = ("#channel", u"42 = forty-two")
    result = module_wolfram_alpha.command_wa(bot, None, "#channel", query)
    eq_(target, result)
예제 #4
0
def test_simple():
    module_wolfram_alpha.init(bot)
    query = "42"
    target = ("#channel", u"42 = forty-two")
    result = module_wolfram_alpha.command_wa(bot, None, "#channel", query)
    eq_(target, result)