def test_djangohttprequestchecking(self): test_print_begin(db_util.get_current_function_name()) try: db_http.parse_http_request_to_dict("hello") except db_except.Error as e: self.assertTrue("hello", e.org) test_print_end("NotDjangoHttpRequestError can be captured in Error type")
def test_gethttpparams(self): test_print_begin(db_util.get_current_function_name()) c = Client() response = c.post('/login/', {'username': '******', 'password': '******'}) print response test_print_end("NotDjangoHttpRequestError can be captured in Error type")