def test_resource_mapping(self): mapping = project.resource_mapping() self.assertEqual(1, len(mapping)) self.assertEqual(project.KeystoneProject, mapping[RESOURCE_TYPE]) self.assertIsInstance(self.test_project, project.KeystoneProject)