You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by he...@apache.org on 2015/12/15 18:37:04 UTC

[08/15] allura git commit: [#5940] ticket:866 updated tests for navigation

[#5940] ticket:866 updated tests for navigation


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/b2de4b71
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/b2de4b71
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/b2de4b71

Branch: refs/heads/master
Commit: b2de4b71684fe51b949f990745bcfa33e1d96ac7
Parents: c9e9b83
Author: DeV1doR <de...@ukr.net>
Authored: Fri Dec 4 14:40:14 2015 +0200
Committer: Heith Seewald <he...@gmail.com>
Committed: Tue Dec 15 11:35:41 2015 -0600

----------------------------------------------------------------------
 Allura/allura/tests/functional/test_nav.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/b2de4b71/Allura/allura/tests/functional/test_nav.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_nav.py b/Allura/allura/tests/functional/test_nav.py
index c382941..a0fe530 100644
--- a/Allura/allura/tests/functional/test_nav.py
+++ b/Allura/allura/tests/functional/test_nav.py
@@ -17,13 +17,11 @@ class TestNavigation(TestController):
     def setUp(self):
         super(TestNavigation, self).setUp()
         self.logo_pattern = ('div', {'class': 'nav-logo'})
-        self.global_nav_pattent = ('nav', {'class': 'nav-left'})
+        self.global_nav_pattern = ('nav', {'class': 'nav-left'})
         self.nav_data = {
             "title": "Link Test", "url": "http://example.com"}
         self.logo_data = {
             "redirect_link": "/", "image_path": "test_image.png"}
-
-    def tearDown(self):
         g._Globals__shared_state.pop('global_nav', None)
         g._Globals__shared_state.pop('nav_logo', None)
 
@@ -36,7 +34,7 @@ class TestNavigation(TestController):
     def test_global_nav_links_present(self):
         with h.push_config(config, **self._set_config()):
             response = self.app.get('/')
-        nav_left = response.html.find(*self.global_nav_pattent)
+        nav_left = response.html.find(*self.global_nav_pattern)
         assert len(nav_left.findAll('a')) == 1
         assert nav_left.a.get('href') == self.nav_data['url']
         assert nav_left.a.text == self.nav_data['title']
@@ -45,7 +43,7 @@ class TestNavigation(TestController):
     def test_global_nav_links_absent(self, global_nav):
         with h.push_config(config, **self._set_config()):
             response = self.app.get('/')
-        nav_left = response.html.find(*self.global_nav_pattent)
+        nav_left = response.html.find(*self.global_nav_pattern)
         assert len(nav_left.findAll('a')) == 0
 
     def test_logo_absent_if_not_image_path(self):