Permalink
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (10 sloc) 496 Bytes
# -*- coding: utf-8 -*-
# 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(object):
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))