#NEWLINE# def has_label( test_name , label_name = anything ( ) , label_value = anything ( ) ) : #NEWLINE# #INDENT# return has_property ( '{}test-cases' , has_property ( 'test-case' , has_item ( has_properties ( { #NEWLINE# #INDENT# 'name' : equal_to ( test_name ) , #NEWLINE# 'labels' : has_property ( 'label' , has_item ( has_property ( 'attrib' , equal_to ( { #NEWLINE# #INDENT# 'name' : label_name , #NEWLINE# 'value' : label_value , #NEWLINE# #UNINDENT# } ) ) ) ) , #NEWLINE# #UNINDENT# } ) ) ) )