def test_null_table_name(self, value, expected): with pytest.raises(expected): get_extension(value)
def test_normal(self, value, expected): assert get_extension(value) == expected