#NEWLINE# def testGroupRetrieval( self ) : #NEWLINE# #INDENT# realm = service . InMemoryWordsRealm ( 'realmname' ) #NEWLINE# d = wFD ( realm . createGroup ( 'testgroup' ) ) #NEWLINE# ( yield retrieved ) #NEWLINE# group = d . getResult ( ) #NEWLINE# d = wFD ( realm . getGroup ( 'testgroup' ) ) #NEWLINE# ( yield d ) #NEWLINE# retrieved = d . getResult ( ) #NEWLINE# self . assertIdentical ( group , retrieved ) #NEWLINE# d = wFD ( realm . getGroup ( 'nosuchgroup' ) ) #NEWLINE# ( yield d ) #NEWLINE# self . assertRaises ( ewords . NoSuchGroup , d . getResult )