Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
When we run: python manage.py test, we have the following fails
======================================================================
FAIL: test_should_render_home_view (datawinners.home.tests.test_home.TestHome)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/home/tests/test_home.py", line 14, in test_should_render_home_view
self.assertEquals(response.status_code,200)
AssertionError: 404 != 200
======================================================================
FAIL: test_should_render_link_to_trial_registration (datawinners.home.tests.test_home.TestHome)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/home/tests/test_home.py", line 20, in test_should_render_link_to_trial_registration
self.assertRegexpMatches(response.content, r'href="/register/trial"')
AssertionError: Regexp didn't match: 'href="/register/trial"' not found in '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n <link rel="shortcut icon" href="/media/images/favicon.ico" type="image/x-icon">\n <link rel="icon" href="/media/images/favicon.ico" type="image/x-icon">\n \n <title>\n \n </title>\n\n \n\n\n \n <link rel="stylesheet" href="/media/CACHE/css/3557bef22301.css" type="text/css" media="screen, projection" /><link rel="stylesheet" href="/media/CACHE/css/c3a9ffeb5fc2.css" type="text/css" media="screen" /><link rel="stylesheet" href="/media/CACHE/css/af6140f331e2.css" type="text/css" media="print" /><link rel="stylesheet" href="/media/CACHE/css/bd0793e7247e.css" type="text/css" />\n\n <!--[if gte IE 7]>\n <link href="/media/css/plugins/960gd/ie.css" rel="stylesheet" type="text/css" media="screen" />\n <![endif]-->\n <!--[if IE 7]>\n <link href="/media/css/plugins/960gd/ie7.css" rel="stylesheet" type="text/css" media="screen" />\n <![endif]-->\n\n <script type="text/javascript" src="/jsi18n/"></script>\n\n <script type="text/javascript" src="/media/CACHE/js/7c0334a21285.js"></script>\n\n</head>\n\n<body>\n <noscript>\n <p class="message-box margin_left_20">Javascript is disabled in your browser, Please enable it.</p>\n </noscript>\n <div id="global_error">\n </div>\n <input type="hidden" id="debug" name="debug" value="False">\n \n \n <div id="container_header_application">\n <div class="container_24" id="header_application">\n \n<div id="container_header_wizard" >\n <div class="container_24" id="header_wizard">\n <div id="header" class="grid_24">\n \n <div class="grid_24 omega login text_align_right">\n <div class="grid_11 alpha logo">\n </div>\n <span> <a href="/switch/fr/">Fran&ccedil;ais</a> </span>\n <span> <a href="/switch/en/">English</a> </span>\n <span> <a href="/login/">Sign In</a> </span>\n <span> <a href="/register/"\n \n \n >Sign Up</a> </span>\n </div>\n \n </div>\n </div>\n</div>\n\n \n\n\n <div id="main_tab">\n <div class="grid_6 alpha logo">\n <img src="/media/images/datawinners_logo.png"/>\n </div>\n <ul class="">\n <li class ="inactive">\n <a id="global_dashboard_link" href="/dashboard/" class="">Dashboard</a>\n </li>\n <li class ="inactive">\n <a id="global_projects_link" href="/project/" class="">Projects</a>\n </li>\n <li class ="inactive">\n <a id="global_datasenders_link" href="/entity/datasenders/" class="">All Data Senders</a>\n </li>\n <li class ="inactive">\n <a id="global_subjects_link" href="/entity/subjects/" class="">All Subjects</a>\n </li>\n <li class ="inactive padding_right_null">\n <a id="global_all_data_link" href="/alldata">All Data</a>\n </li>\n </ul>\n </div>\n\n\n </div>\n </div>\n\n \n\n \n <div id="container_content">\n\n <div id="page_title">\n \n \n </div>\n <div class="container_24">\n\n \n <div class="grid_23 content">\n \n<h1>Page not found</h1>\n\n<p>Sorry, but the requested page could not be found.</p>\n\n\n </div>\n\n </div>\n </div>\n \n\n</body>\n</html>\n'
----------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment