Exemplo n.º 1
0
def test_storage_format_other():
    assert store.StorageFormat("standard") != store.StorageFormat.RAW
    with pytest.raises(KeyError):
        store.StorageFormat.from_str("bad")
Exemplo n.º 2
0
def test_storage_format(text, storage_format):
    assert store.StorageFormat(text) == storage_format
    assert str(storage_format) == text
    assert store.StorageFormat.from_str(text) == storage_format