#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def test_one_member( self ) : #NEWLINE# #INDENT# ( yield self . inject_room_member ( m . room , self . u_alice , Membership . JOIN ) ) #NEWLINE# self . assertEquals ( Membership . JOIN , ( yield self . store . get_room_member ( user_id = self . u_alice . to_string ( ) , room_id = self . room . to_string ( ) ) ) . membership ) #NEWLINE# self . assertEquals ( [ self . u_alice . to_string ( ) ] , [ m . user_id for m in ( yield self . store . get_room_members ( self . room . to_string ( ) ) ) ] ) #NEWLINE# self . assertEquals ( [ self . room . to_string ( ) ] , [ m . room_id for m in ( yield self . store . get_rooms_for_user_where_membership_is ( self . u_alice . to_string ( ) , [ Membership . JOIN ] ) ) ] )