#NEWLINE# def test_has( self ) : #NEWLINE# #INDENT# assert ( 0 == len ( self . jon . query ( ) . labels ( EnrolledIn ) . has ( 'enthusiasm' , 5 , GREATER_THAN ) . vertices ( ) ) ) #NEWLINE# num = self . jon . query ( ) . labels ( EnrolledIn ) . has ( 'enthusiasm' , 5 , GREATER_THAN ) . count ( ) #NEWLINE# assert ( 0 == num ) , num #NEWLINE# assert ( 1 == len ( self . jon . query ( ) . labels ( EnrolledIn ) . has ( 'enthusiasm' , 5 , LESS_THAN ) . vertices ( ) ) ) #NEWLINE# num = self . jon . query ( ) . labels ( EnrolledIn ) . has ( 'enthusiasm' , 5 , LESS_THAN ) . count ( ) #NEWLINE# assert ( 1 == self ) , num