def assert_attribute_is(output, path, attribute, text):
 assert_attribute_matches(output, path, attribute, re.escape(text))

def assert_attribute_is ( output , path , attribute , text ) : assert_attribute_matches ( output , path , attribute , re . escape ( text ) )
asserts the specified attribute of the first element matching the specified path matches exactly the specified text .