1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 07:08:55 +00:00

[tests] follow python codestyle

This commit is contained in:
Chilledheart
2014-08-29 19:13:55 +08:00
committed by lins05
parent b6b8970a96
commit f291595eda
15 changed files with 77 additions and 77 deletions

View File

@@ -8,10 +8,10 @@ class LoginTestCase(unittest.TestCase):
self.assertIsNotNone(self.browser)
self.addCleanup(self.browser.quit)
def testLogin(self):
def test_login(self):
self.assertRegexpMatches(self.browser.current_url, HOME_URL)
def testLogout(self):
def test_logout(self):
myinfo_bar = self.browser.find_element_by_css_selector('#my-info')
logout_input = self.browser.find_element_by_css_selector('a#logout')
myinfo_bar.click()