def test_status_message(self):

        h = HTTP

        def gen_status_str(code, message):
            return str(code) + ' ' + str(message)
        message = '1423 This is a custom message'
        code = 1423
        self.assertEqual(str(h(gen_status_str(code, message))),
                         gen_status_str(code, message))

        # test predefined codes
        for code in defined_status.keys():
            self.assertEqual(
                str(h(code)),
                gen_status_str(code, defined_status[code]))

        # test correct use of status_message
        for code in defined_status.keys():
            self.assertEqual(str(h(gen_status_str(code, message))),
                             gen_status_str(code, message))

        # test wrong call detection
Returns a line
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/tests/test_http.py/TestHTTP.test_status_message--crossover with--dataset/ETHPy150Open EiNSTeiN-/idapython/pywraps/py_custview.py/simplecustviewer_t.GetLine