#NEWLINE# @ httpretty . activate #NEWLINE# def test_put_team_create( self ) : #NEWLINE# #INDENT# 'Create a team with membership.' #NEWLINE# member_changes = [ ] #NEWLINE# self . register_team_list ( self . callback_team_list ) #NEWLINE# self . register_team_members ( partial ( self . callback_team_members , members = [ ] ) ) #NEWLINE# self . register_team_create ( self . callback_team_create ) #NEWLINE# self . register_team_membership ( partial ( self . callback_team_membership , action_list = member_changes ) ) #NEWLINE# git_hub = GitHub ( self . URL , x . OAUTH2_TOKEN ) #NEWLINE# git_hub . put_team ( self . ORG , 'New Team' , True , self . TEST_TEAM_MEMBERS ) #NEWLINE# self . assertItemsEqual ( [ ( unicode ( x ) , True ) for x in self . TEST_TEAM_MEMBERS ] , member_changes )