Skip to content
Browse files

Updating imports to use from <filename> import <method>

  • Loading branch information...
1 parent 98fa523 commit a3145ae8624908bc2229cffc898d0c126e448d2e Glenn Howard committed Mar 20, 2012
Showing with 9 additions and 8 deletions.
  1. +1 −0 page.py
  2. +2 −2 pages/base.py
  3. +2 −2 pages/log_in_or_create_account.py
  4. +2 −2 pages/log_out.py
  5. +2 −2 pages/view_source.py
View
1 page.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
View
4 pages/base.py
@@ -7,7 +7,7 @@
from selenium.webdriver.common.by import By
from page import Page
-import personal_tools_region
+from personal_tools_region import PersonalToolsRegion
class BasePage(Page):
@@ -16,7 +16,7 @@ class BasePage(Page):
@property
def personal_tools_region(self):
- return personal_tools_region.PersonalToolsRegion(self.testsetup)
+ return PersonalToolsRegion(self.testsetup)
@property
def page_title(self):
View
4 pages/log_in_or_create_account.py
@@ -6,10 +6,10 @@
from selenium.webdriver.common.by import By
-import base
+from base import BasePage
-class LogInOrCreateAccountPage(base.BasePage):
+class LogInOrCreateAccountPage(BasePage):
_page_title = 'Log in / create account - MozillaWiki'
View
4 pages/log_out.py
@@ -4,9 +4,9 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-import base
+from base import BasePage
-class LogOutPage(base.BasePage):
+class LogOutPage(BasePage):
_page_title = 'Log out - MozillaWiki'
View
4 pages/view_source.py
@@ -6,10 +6,10 @@
from selenium.webdriver.common.by import By
-import base
+from base import BasePage
-class ViewSourcePage(base.BasePage):
+class ViewSourcePage(BasePage):
_page_title = 'View source - MozillaWiki'

0 comments on commit a3145ae

Please sign in to comment.
Something went wrong with that request. Please try again.