def test_exception(self, value, expected): with pytest.raises(expected): validate_table_name(value)
def test_normal(self, value): validate_table_name(value)