def test_resource_mapping(self): rsrc = self._setup_service_resource( 'test_resource_mapping') mapping = service.resource_mapping() self.assertEqual(1, len(mapping)) self.assertEqual(service.KeystoneService, mapping[RESOURCE_TYPE]) self.assertIsInstance(rsrc, service.KeystoneService)
def test_resource_mapping(self): mapping = service.resource_mapping() self.assertEqual(1, len(mapping)) self.assertEqual(service.KeystoneService, mapping[RESOURCE_TYPE]) self.assertIsInstance(self.test_service, service.KeystoneService)