def test_update_project_should_change_name(self):
        # Arrange
        project = Project()
        project.name = 'old-name'

        self.mock_project_service.get_project_by_id.return_value = project

        # Act
        updated_project = self.api_service.update_project(1, 'new-name')

        # Assert
        self.assertEqual(updated_project['project_name'], 'new-name')
    def test_create_project_should_create(self):
        # Arrange
        project = Project()
        project.name = 'project'
        self.mock_project_service.create_project.return_value = project

        # Act
        result = self.api_service.create_project('project')

        # Assert
        self.mock_project_service.create_project.assert_called_once_with(
            'project')
        self.assertEqual(result['project_name'], 'project')