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/04/14 22:19:43 UTC

allura git commit: [#7855] Updated a test to work with Pygments version 1.6 and higher

Repository: allura
Updated Branches:
  refs/heads/hs/7855 [created] ab8423fd9


[#7855] Updated a test to work with Pygments version 1.6 and higher


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

Branch: refs/heads/hs/7855
Commit: ab8423fd9170c83b9378c77d63344a044f54b4d0
Parents: 747cad0
Author: Heith Seewald <hs...@slashdotmedia.com>
Authored: Tue Apr 14 19:16:25 2015 +0000
Committer: Heith Seewald <hs...@slashdotmedia.com>
Committed: Tue Apr 14 19:17:03 2015 +0000

----------------------------------------------------------------------
 Allura/allura/tests/test_utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/ab8423fd/Allura/allura/tests/test_utils.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/test_utils.py b/Allura/allura/tests/test_utils.py
index 06579c5..7903ba3 100644
--- a/Allura/allura/tests/test_utils.py
+++ b/Allura/allura/tests/test_utils.py
@@ -25,7 +25,7 @@ from os import path
 
 from webob import Request
 from mock import Mock, patch
-from nose.tools import assert_equal, assert_raises
+from nose.tools import assert_equal, assert_raises, assert_in
 from pygments import highlight
 from pygments.lexers import get_lexer_for_filename
 from tg import config
@@ -201,7 +201,7 @@ class TestLineAnchorCodeHtmlFormatter(unittest.TestCase):
         hl_code = highlight(code, lexer, formatter)
         assert '<div class="codehilite">' in hl_code
         assert '<div id="l1" class="code_block">' in hl_code
-        assert '<span class="lineno">1</span>' in hl_code
+        assert_in('<span class="lineno">1 </span>', hl_code)
 
 
 class TestIsTextFile(unittest.TestCase):