#NEWLINE# @ skipIf ( version_2_1 , 'this test highlights a server bug in 2.1' ) #NEWLINE# def test_can_add_and_remove_labels_on_node_in_same_batch( self ) : #NEWLINE# #INDENT# alice = self . batch . create ( { #NEWLINE# #INDENT# 'name' : 'Alice' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . batch . add_labels ( self , 'human' , 'female' ) #NEWLINE# self . batch . remove_label ( alice , 'female' ) #NEWLINE# results = self . batch . run ( ) #NEWLINE# alice = results [ self . batch . find ( alice ) ] #NEWLINE# self . graph . pull ( alice ) #NEWLINE# assert ( set ( alice . labels ( ) ) == { 'human' } )