예제 #1
0
def test_not_implemented_parser():
    filename = 'filename.dsa-dsa-dsaasd'
    with pytest.raises(NotImplementedError):
        parsers.get_parser(filename)
예제 #2
0
def test_not_implemented_parser():
    filename = 'filename.dsa-dsa-dsaasd'
    with pytest.raises(NotImplementedError):
        parsers.get_parser(filename)
예제 #3
0
def test_get_parser(valid_parser):
    ext, parser = valid_parser
    fetched = parsers.get_parser('filename.' + ext)
    assert parser == fetched
예제 #4
0
def test_get_parser(valid_parser):
    ext, parser = valid_parser
    fetched = parsers.get_parser('filename.' + ext)
    assert parser == fetched