Beispiel #1
0
 def test_loginverify_submitnocontinue(self):
     self.set_post({
         'commit': 'No',
         'continue': 'http://192.168.33.168:8080/'
     })
     page = LoginVerify(self.request, self.response)
     page.redirect = self.response.redirect
     page.post()
     self.assertEqual(self.response.redirect_location, '/')
Beispiel #2
0
 def test_loginverify_submitnocontinue(self):
   self.set_post({
     'commit' : 'No',
     'continue' : 'http://192.168.33.168:8080/'
   })
   page = LoginVerify(self.request, self.response)
   page.redirect = self.response.redirect
   page.post()
   self.assertEqual(self.response.redirect_location, '/')
Beispiel #3
0
 def test_loginverify_submitcontinue(self):
   from dashboard import LoginVerify
   self.set_post({
     'commit' : 'Yes',
     'continue' : 'http://192.168.33.168:8080/'
   })
   page = LoginVerify(self.request, self.response)
   page.redirect = self.response.redirect
   page.post()
   self.assertEqual(self.response.redirect_location, 'http://192.168.33.168:8080/')
Beispiel #4
0
 def test_loginverify_submitcontinue(self):
     from dashboard import LoginVerify
     self.set_post({
         'commit': 'Yes',
         'continue': 'http://192.168.33.168:8080/'
     })
     page = LoginVerify(self.request, self.response)
     page.redirect = self.response.redirect
     page.post()
     self.assertEqual(self.response.redirect_location,
                      'http://192.168.33.168:8080/')