Example #1
0
  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
Example #2
0
 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()
Example #3
0
  def setUp(self):
    super(NewLuksRequestHandlerTest, self).setUp()

    self.c = luks.Luks()
    settings.KEY_TYPE_DEFAULT_XSRF = settings.KEY_TYPE_DATASTORE_XSRF