def METHOD_NAME(
    mocker,
):
    # Given
    project_id = 1
    mocked_project_metadata = mocker.patch(
        "environments.dynamodb.migrator.DynamoProjectMetadata"
    )
    mocked_project_metadata_instance = mocker.MagicMock(
        spec=DynamoProjectMetadata,
        identity_migration_status=ProjectIdentityMigrationStatus.MIGRATION_IN_PROGRESS,
    )
    mocked_project_metadata.get_or_new.return_value = mocked_project_metadata_instance
    identity_migrator = IdentityMigrator(project_id)
    # When
    status = identity_migrator.migration_status
    # Then
    assert status == ProjectIdentityMigrationStatus.MIGRATION_IN_PROGRESS
    mocked_project_metadata.get_or_new.assert_called_with(project_id)