def _post_load(self):
     self._forms = {}
     try:
         del self._html
     except AttributeError:
         pass
     self.status_code = StatusCode(self._response.status_code, "")
Ejemplo n.º 2
0
class RequestHandlerTestCase(unittest.TestCase):
    def setUp(self):
        self.status_code = StatusCode(200, "OK")

    def test_should_receive_an_url_and_get_a_success_response(self):
        self.assertTrue(self.status_code.is_success())

    def test_should_compare_app_index_with_404_and_get_false(self):
        self.assertNotEqual(self.status_code, 404)
Ejemplo n.º 3
0
class RequestHandlerTestCase(unittest.TestCase):

    def setUp(self):
        self.status_code = StatusCode(200, 'OK')

    def test_should_receive_an_url_and_get_a_success_response(self):
        self.assertTrue(self.status_code.is_success())

    def test_should_compare_app_index_with_404_and_get_false(self):
        self.assertNotEqual(self.status_code, 404)
Ejemplo n.º 4
0
 def visit(self, url):
     self.status_code = None
     self.driver.get(url)
     self.status_code = StatusCode(200, 'OK')
Ejemplo n.º 5
0
 def setUp(self):
     self.status_code = StatusCode(200, "OK")
 def setUp(self):
     self.status_code = StatusCode(200, 'OK')
Ejemplo n.º 7
0
 def setUp(self):
     self.status_code = StatusCode(200, 'OK')