def test_resource_mapping(self): mapping = user.resource_mapping() self.assertEqual(1, len(mapping)) self.assertEqual(user.KeystoneUser, mapping[RESOURCE_TYPE]) self.assertIsInstance(self.test_user, user.KeystoneUser)