'If an invalid URL is detected in the form\'s action then use base_url'

def test_form_with_invalid_url_in_action(self):

    body = '\n                                <html>\n                                                <form    action="javascript:history.back(1)">\n                                                </form>\n                                </html>'
    r = build_http_response(self.url, body)
    p = RaiseHTMLParser(r)
    p.parse()
    self.assertEquals(self.url, p.forms[0].get_action())
