#NEWLINE# def test_joinLeave( self ) : #NEWLINE# #INDENT# '\n        Test that multicast a group can be joined and left.\n        ' #NEWLINE# d = self . client . transport . joinGroup ( '225.0.0.250' ) #NEWLINE# def clientJoined( ignored ) : #NEWLINE# #INDENT# return self . client . transport . leaveGroup ( '225.0.0.250' ) #NEWLINE# #UNINDENT# d . addCallback ( clientJoined ) #NEWLINE# def clientLeft( ignored ) : #NEWLINE# #INDENT# return self . server . transport . joinGroup ( '225.0.0.250' ) #NEWLINE# #UNINDENT# d . addCallback ( clientLeft ) #NEWLINE# def serverJoined( ignored ) : #NEWLINE# #INDENT# return self . server . transport . leaveGroup ( '225.0.0.250' ) #NEWLINE# #UNINDENT# d . addCallback ( serverJoined ) #NEWLINE# return d