#NEWLINE# def testGroups( self ) : #NEWLINE# #INDENT# mindone = TestMind ( ) #NEWLINE# one = wFD ( self . _loggedInAvatar ( 'one' , 'p1' , mindone ) ) #NEWLINE# ( yield one ) #NEWLINE# one = one . getResult ( ) #NEWLINE# mindtwo = TestMind ( ) #NEWLINE# two = wFD ( self . _loggedInAvatar ( 'two' , 'p2' , mindtwo ) ) #NEWLINE# ( yield two ) #NEWLINE# two = two . getResult ( ) #NEWLINE# add = wFD ( self . realm . createGroup ( 'foobar' ) ) #NEWLINE# ( yield add ) #NEWLINE# add . getResult ( ) #NEWLINE# groupone = wFD ( one . join ( 'foobar' ) ) #NEWLINE# ( yield groupone ) #NEWLINE# groupone = groupone . getResult ( ) #NEWLINE# grouptwo = wFD ( two . join ( 'foobar' ) ) #NEWLINE# ( yield grouptwo ) #NEWLINE# grouptwo = grouptwo . getResult ( ) #NEWLINE# msg = wFD ( groupone . send ( { #NEWLINE# #INDENT# 'text' : 'hello, monkeys' , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# ( yield msg ) #NEWLINE# msg = msg . getResult ( ) #NEWLINE# leave = wFD ( groupone . leave ( ) ) #NEWLINE# ( yield leave ) #NEWLINE# leave = leave . getResult ( )