some tests, urls now have a name

This commit is contained in:
volpino
2012-05-06 20:03:49 +02:00
parent 0ece4c04b2
commit 948c5b8c39
6 changed files with 49 additions and 31 deletions

View File

@ -30,3 +30,4 @@ class SystemTestCase(unittest.TestCase):
from test_models import *
from test_views import *
from test_charts import *

View File

@ -0,0 +1,15 @@
from euscanwww.djeuscan.tests import SystemTestCase
class ChartTests(SystemTestCase):
"""
Test main pages
"""
def test_statistics(self):
response = self.get("statistics")
self.assertEqual(response.status_code, 200)
def test_pie_versions(self):
response = self.get("chart", chart="pie-versions")
self.assertEqual(response.status_code, 200)