def test_associate(self):
        with client.test_mode as t:
            t.register_json('/teams/42/users/?id=84',
                            {'count': 0, 'results': []})
            t.register_json('/teams/42/users/', {}, method='POST')
            self.team_resource.associate(42, 84)
            self.assertEqual(t.requests[1].body,
                             json.dumps({'associate': True, 'id': 84}))
Establish that the associate method makes the HTTP requests
dataset/ETHPy150Open ansible/tower-cli/tests/test_resources_team.py/TeamTests.test_associate