def setUp(self): super(NewLuksRequestHandlerTest, self).setUp() test_util.SetUpTestbedTestCase(self) self.c = luks.Luks() settings.KEY_TYPE_DEFAULT_XSRF = settings.KEY_TYPE_DATASTORE_XSRF
def setUp(self): mox.MoxTestBase.setUp(self) self.c = luks.Luks() self.mox.StubOutWithMock(self.c, 'error') self.c.response = self.mox.CreateMockAnything() self.c.response.out = self.mox.CreateMockAnything() self.c.request = self.mox.CreateMockAnything()
def setUp(self): super(NewLuksRequestHandlerTest, self).setUp() self.c = luks.Luks() settings.KEY_TYPE_DEFAULT_XSRF = settings.KEY_TYPE_DATASTORE_XSRF