def test_as_dict(self):
        objects.load()
        if self.data is None:
            s = servicemodel.Service()
            self.data = {}
        else:
            s = servicemodel.Service(**self.data)
        if 'uri' in self.data:
            del self.data['uri']
        if 'type' in self.data:
            del self.data['type']
        self.assertEqual(self.data,
                         s.as_dict(objects.registry.Service))
dataset/ETHPy150Open openstack/solum/solum/tests/api/controllers/v1/test_service.py/TestServiceAsDict.test_as_dict/original