#NEWLINE# def test_valid_project_as_factory_allow_retractions_is_retracted( self ) : #NEWLINE# #INDENT# self . project . is_registration = True #NEWLINE# self . project . retraction = res . retraction #NEWLINE# self . retraction . state = Sanction . UNAPPROVED #NEWLINE# self . retraction . save ( ) #NEWLINE# res = as_factory_allow_retractions ( pid = self . project . _id ) #NEWLINE# assert_equal ( res [ 'node' ] , self . project )