Skip to content

Commit

Permalink
Moved import to top
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragkanungo committed Feb 24, 2015
1 parent d4c91a2 commit cfb423d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kalite/distributed/tests/browser_tests/quiz.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
"""
These use a web-browser, along selenium, to simulate user actions.
"""

import urllib

from django.conf import settings
logging = settings.LOG
from django.core.urlresolvers import reverse
Expand All @@ -10,8 +13,6 @@
from kalite.testing.mixins import BrowserActionMixins, FacilityMixins
from selenium.webdriver.common.keys import Keys

import urllib

PLAYLIST_ID = "g4_u400_ap1"


Expand Down Expand Up @@ -68,4 +69,5 @@ def test_unauthorized_request_redirect_to_login(self):
self.browser.find_element_by_id('solutionarea').find_element_by_css_selector('input[type=text]').click()
self.browser_send_keys(unicode("Anurag"))
self.browser_send_keys(Keys.RETURN)
#Not using urlencode for next param as its hassle to use escape character for params only.
self.assertEqual(self.browser.current_url, self.reverse('login') + "?next=" + reverse("view_playlist", kwargs={"playlist_id": PLAYLIST_ID}) + "#" + hash_value)

0 comments on commit cfb423d

Please sign in to comment.