# Copyright 2012 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
from .fake_webapp import EXAMPLE_APP


class StatusCodeTest:
    def test_should_visit_index_of_example_app_and_get_200_status_code(self):
        self.browser.visit(EXAMPLE_APP)
        self.assertEqual(200, self.browser.status_code)
        self.assertEqual("200 - OK", str(self.browser.status_code))

    def test_should_visit_error_of_example_app_and_not_get_200_status_code(self):
        self.browser.visit(EXAMPLE_APP + "error.html")
        self.assertNotEqual(200, self.browser.status_code)
        self.assertEqual("404 - Not Found", str(self.browser.status_code))

85ec56ae3bb5375c274982c25f04531a59bac462
<mask token>

<mask token>


class StatusCodeTest:
    <mask token>

    def test_should_visit_error_of_example_app_and_not_get_200_status_code(self
        ):
        self.browser.visit(EXAMPLE_APP + 'error.html')
        self.assertNotEqual(200, self.browser.status_code)
        self.assertEqual('404 - Not Found', str(self.browser.status_code))

<mask token>


class StatusCodeTest:

    def test_should_visit_index_of_example_app_and_get_200_status_code(self):
        self.browser.visit(EXAMPLE_APP)
        self.assertEqual(200, self.browser.status_code)
        self.assertEqual('200 - OK', str(self.browser.status_code))

    def test_should_visit_error_of_example_app_and_not_get_200_status_code(self
        ):
        self.browser.visit(EXAMPLE_APP + 'error.html')
        self.assertNotEqual(200, self.browser.status_code)
        self.assertEqual('404 - Not Found', str(self.browser.status_code))

from .fake_webapp import EXAMPLE_APP


class StatusCodeTest:

    def test_should_visit_index_of_example_app_and_get_200_status_code(self):
        self.browser.visit(EXAMPLE_APP)
        self.assertEqual(200, self.browser.status_code)
        self.assertEqual('200 - OK', str(self.browser.status_code))

    def test_should_visit_error_of_example_app_and_not_get_200_status_code(self
        ):
        self.browser.visit(EXAMPLE_APP + 'error.html')
        self.assertNotEqual(200, self.browser.status_code)
        self.assertEqual('404 - Not Found', str(self.browser.status_code))

# Copyright 2012 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
from .fake_webapp import EXAMPLE_APP


class StatusCodeTest:
    def test_should_visit_index_of_example_app_and_get_200_status_code(self):
        self.browser.visit(EXAMPLE_APP)
        self.assertEqual(200, self.browser.status_code)
        self.assertEqual("200 - OK", str(self.browser.status_code))

    def test_should_visit_error_of_example_app_and_not_get_200_status_code(self):
        self.browser.visit(EXAMPLE_APP + "error.html")
        self.assertNotEqual(200, self.browser.status_code)
        self.assertEqual("404 - Not Found", str(self.browser.status_code))
