#NEWLINE# def test_role_assignto_group( self ) : #NEWLINE# #INDENT# role = ( yield self . test_create_role ( ) ) #NEWLINE# group = ( yield self . random_group ( role . owner . name ) ) #NEWLINE# sa = ( yield role . assignto ( group ) ) #NEWLINE# self . assertEqual ( sa . role , role ) #NEWLINE# self . assertEqual ( sa . group , group ) #NEWLINE# roles = ( yield group . roles . all ( ) ) #NEWLINE# self . assertTrue ( ( role in roles ) )