def test_policy_resolve_attribute(self): excepted_show = { 'id': 'some_id', 'name': 'SenlinPolicy', } policy = self._create_policy(self.t) self.senlin_mock.get_policy.return_value = FakePolicy() self.assertEqual(excepted_show, policy._show_resource())