def METHOD_NAME(self, cognite_client: CogniteClient, cdf_spaces: SpaceList) -> None:
    actual_space_in_cdf = cognite_client.data_modeling.spaces.list(limit=-1)
    assert actual_space_in_cdf.as_apply() == cdf_spaces.as_apply()