Permalink
Browse files

Reordered imports, and removed superfluous assertion message.

  • Loading branch information...
1 parent 757232b commit c46449b094c136e700894f43500a5eeb14fd216d @davehunt davehunt committed Dec 6, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 page.py
View
@@ -34,8 +34,8 @@
#
# ***** END LICENSE BLOCK *****
-from unittestzero import Assert
from selenium.webdriver.support.ui import WebDriverWait
+from unittestzero import Assert
class Page(object):
@@ -49,8 +49,7 @@ def is_the_current_page(self):
if self._page_title:
WebDriverWait(self.selenium, 10).until(lambda s: self.selenium.title)
- Assert.equal(self.selenium.title, self._page_title,
- "Expected page title: %s. Actual page title: %s" % (self._page_title, self.selenium.title))
+ Assert.equal(self.selenium.title, self._page_title)
return True
def is_element_visible(self, locator):

0 comments on commit c46449b

Please sign in to comment.