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')
......
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