def setUp(self): SkaliCloud.connectionCls.conn_class = ElasticStackMockHttp self.driver = SkaliCloud('foo', 'bar') images = self.driver.list_images() self.image = [i for i in images if i.id == '90aa51f2-15c0-4cff-81ee-e93aa20b9468'][0] super(SkaliCloudTestCase, self).setUp()
def setUp(self): SkaliCloud.connectionCls.conn_classes = (None, ElasticStackMockHttp) self.driver = SkaliCloud('foo', 'bar') images = self.driver.list_images() self.image = [i for i in images if \ i.id == '90aa51f2-15c0-4cff-81ee-e93aa20b9468'][0] ElasticStackTestCase.setUp(self) unittest.TestCase.setUp(self)