def test_identifier_to_string(identifier_to_string): for identifier, string in identifier_to_string.iteritems(): result = meta.recase(identifier, 'slug') assert result == unicode(string)
def test_string_to_identifier(string_to_identifier): for string, identifier in string_to_identifier.iteritems(): result = meta.recase(unicode(string)) assert result == identifier