Skip to content

Instantly share code, notes, and snippets.

@julnarot
Last active August 29, 2015 14:01
Show Gist options
  • Save julnarot/c6f3e084e37c2571cb14 to your computer and use it in GitHub Desktop.
Save julnarot/c6f3e084e37c2571cb14 to your computer and use it in GitHub Desktop.
class PollsTest(LiveServerTestCase):
def setUp(self):
self.browser = webdriver.Firefox()
self.browser.implicitly_wait(3)
def tearDown(self):
self.browser.quit()
def test_can_create_new_poll_via_admin_site(self):
self.browser.get(self.live_server_url + '/admin/')
body = self.browser.find_element_by_tag_name('body')
self.assertIn('Django administration', body.text)
self.fail('finish this test')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment