Example #1
0
def test_get_format():
    assert get_format("bold") == "\x02"
Example #2
0
def test_get_format():
    assert get_format("bold") == "\x02"
Example #3
0
def test_invalid_format():
    with pytest.raises(KeyError) as excinfo:
        get_format("cake")
    assert 'not found in the list of available formats' in str(excinfo.value)
Example #4
0
def test_invalid_format():
    with pytest.raises(KeyError) as excinfo:
        get_format("cake")
    assert 'not found in the list of available formats' in str(excinfo.value)