コード例 #1
0
ファイル: test_calc.py プロジェクト: TetraEtc/limbo
def test_unicode():
    with vcr.use_cassette('test/fixtures/calc_unicode.yaml'):
        # บาท is the Thai Bhat (spelled in Thai, obvs)
        ret = on_message({"text": u"!calc 10 dollars in บาท"}, None)
コード例 #2
0
ファイル: test_calc.py プロジェクト: 84KaliPleXon3/imbo
def test_unicode():
    with vcr.use_cassette('test/fixtures/calc_unicode.yaml'):
        # บาท is the Thai Bhat (spelled in Thai, obvs)
        ret = on_message({"text": u"!calc 10 dollars in บาท"}, None)
コード例 #3
0
ファイル: test_calc.py プロジェクト: TetraEtc/limbo
def test_calc():
    with vcr.use_cassette('test/fixtures/calc_basic.yaml'):
        ret = on_message({"text": u"!calc 2469*5"}, None)
        assert '12,345' in ret
コード例 #4
0
ファイル: test_calc.py プロジェクト: 84KaliPleXon3/imbo
def test_calc():
    with vcr.use_cassette('test/fixtures/calc_basic.yaml'):
        ret = on_message({"text": u"!calc 2469*5"}, None)
        assert '12,345' in ret