Пример #1
0
 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)
Пример #2
0
 def setUp(self):
     super(TestStartIntrospection, self).setUp()
     self.session = mock.Mock(spec=adapter.Adapter)
     self.proxy = _proxy.Proxy(self.session)
Пример #3
0
 def setUp(self):
     super(TestBaremetalIntrospectionProxy, self).setUp()
     self.proxy = _proxy.Proxy(self.session)
Пример #4
0
 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)