def test_not_implemented_parser(): filename = 'filename.dsa-dsa-dsaasd' with pytest.raises(NotImplementedError): parsers.get_parser(filename)
def test_get_parser(valid_parser): ext, parser = valid_parser fetched = parsers.get_parser('filename.' + ext) assert parser == fetched