#NEWLINE# def assertValidRelationshipStatus( self , rel ) : #NEWLINE# #INDENT# self . assert_ ( isinstance ( rel , typepad . RelationshipStatus ) , ( 'object %r is not a typepad.Relationship' % type_ ) ) #NEWLINE# self . assert_ ( rel . types ) #NEWLINE# self . assert_ ( ( len ( rel . types ) > 0 ) ) #NEWLINE# for type_ in rel . types : #NEWLINE# #INDENT# self . assert_ ( ( type_ in ( 'tag:api.typepad.com,2009:Contact' , 'tag:api.typepad.com,2009:Admin' , 'tag:api.typepad.com,2009:Blocked' , 'tag:api.typepad.com,2009:Member' ) ) , ( "type '%s' is unrecognized" % type_ ) )