def setUp(self): super(TestWaitForIntrospection, self).setUp() self.session = mock.Mock(spec=adapter.Adapter) self.proxy = _proxy.Proxy(self.session) self.fake = {'state': 'waiting', 'error': None, 'finished': False} self.introspection = introspection.Introspection(**self.fake)
def setUp(self): super(TestGetData, self).setUp() self.session = mock.Mock(spec=adapter.Adapter) self.proxy = _proxy.Proxy(self.session) self.fake = {'id': '1234', 'finished': False} self.introspection = introspection.Introspection(**self.fake)