def _post_load(self):
     self._forms = {}
     try:
         del self._html
     except AttributeError:
         pass
     self.status_code = StatusCode(self._response.status_code, "")
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)
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)
Beispiel #4
0
 def visit(self, url):
     self.status_code = None
     self.driver.get(url)
     self.status_code = StatusCode(200, 'OK')
 def setUp(self):
     self.status_code = StatusCode(200, "OK")
 def setUp(self):
     self.status_code = StatusCode(200, 'OK')
 def setUp(self):
     self.status_code = StatusCode(200, 'OK')