def test_update_team_with_no_name_and_description(self):
        with self.assertRaises(Exception) as exc:
            response = update_team(self._TEST_TEAM_NAME, None, None,
                                   self._TEST_DEVOPS_ORGANIZATION,
                                   self._TEST_PROJECT_NAME, 'Off')
        self.assertEqual(
            str(exc.exception),
            r'Either name or description argument must be provided.')

        #assert
        self.mock_update_team.assert_not_called()
    def test_update_team(self):
        _NEW_TEAM_NAME = 'updated_team_name'
        _NEW_TEAM_DESCRIPTION = 'update description'
        update_team(self._TEST_TEAM_NAME, _NEW_TEAM_NAME,
                    _NEW_TEAM_DESCRIPTION, self._TEST_DEVOPS_ORGANIZATION,
                    self._TEST_PROJECT_NAME, 'Off')

        #assert
        self.mock_update_team.assert_called_once()
        update_team_param = self.mock_update_team.call_args_list[0][1]
        self.assertEqual(self._TEST_PROJECT_NAME,
                         update_team_param['project_id'],
                         str(update_team_param))
        self.assertEqual(self._TEST_TEAM_NAME, update_team_param['team_id'],
                         str(update_team_param))
        self.assertEqual(_NEW_TEAM_NAME, update_team_param['team_data'].name,
                         str(update_team_param))
        self.assertEqual(_NEW_TEAM_DESCRIPTION,
                         update_team_param['team_data'].description,
                         str(update_team_param))