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