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.

Revisions

  1. julnarot revised this gist May 21, 2014. No changes.
  2. julnarot created this gist May 21, 2014.
    19 changes: 19 additions & 0 deletions gistfile1.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    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')