Conformed to PEP-8.

parent 82c081c9
from selenium import webdriver from selenium import webdriver
import unittest import unittest
from selenium import webdriver
class NewVisitorTest(unittest.TestCase): class NewVisitorTest(unittest.TestCase):
def setUp(self): def setUp(self):
self.browser = webdriver.Firefox() self.browser = webdriver.Firefox()
......
from django.test import TestCase from django.test import TestCase
class HomePageTest(TestCase): class HomePageTest(TestCase):
def test_heroes_page_returns_correct_html(self): def test_heroes_page_returns_correct_html(self):
response = self.client.get('/heroes/') response = self.client.get('/heroes/')
self.assertTemplateUsed(response, 'heroes.html') self.assertTemplateUsed(response, 'heroes.html')
......
...@@ -3,8 +3,8 @@ from django.conf.urls import url ...@@ -3,8 +3,8 @@ from django.conf.urls import url
from .views import heroes_page, cloud_page, sunflowey_page, jester_page from .views import heroes_page, cloud_page, sunflowey_page, jester_page
urlpatterns = [ urlpatterns = [
url(r'^heroes/$', heroes_page, name='heroes_page'), url(r'^heroes/$', heroes_page, name='heroes_page'),
url(r'^hero/cloud$', cloud_page, name='cloud_page'), url(r'^hero/cloud$', cloud_page, name='cloud_page'),
url(r'^hero/sunflowey$', sunflowey_page, name='cloud_page'), url(r'^hero/sunflowey$', sunflowey_page, name='cloud_page'),
url(r'^hero/jester$', jester_page, name='cloud_page'), url(r'^hero/jester$', jester_page, name='cloud_page'),
] ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment