Exemplo n.º 1
0
def test_tea():
    msg = Fake({"owner": {"name": "El'endia Starman"}})

    teas = "\*brews a cup of ({}) tea for ".format("|".join(chatcommands.TEAS))
    assert regex.match(teas + "@El'endiaStarman\*",
                       chatcommands.tea(None, original_msg=msg))
    assert regex.match(teas + "@angussidney\*",
                       chatcommands.tea("angussidney"))
def test_tea():
    msg = Fake({"owner": {"name": "El'endia Starman"}})

    teas = "\\*brews a cup of ({}) tea for ".format("|".join(chatcommands.TEAS))
    assert regex.match(teas + "@El'endiaStarman\\*", chatcommands.tea(None, original_msg=msg))
    assert regex.match(teas + "@angussidney\\*", chatcommands.tea("angussidney"))