incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [1/2] git commit: tests
Date Thu, 21 Feb 2013 20:43:08 GMT
tests


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

Branch: refs/heads/db/5358b
Commit: 8b8b483022fbd78081d1a8207a306fb9b6418f66
Parents: 7a725e2
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Thu Feb 21 19:26:28 2013 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Thu Feb 21 19:26:28 2013 +0000

----------------------------------------------------------------------
 Allura/allura/tests/test_globals.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/8b8b4830/Allura/allura/tests/test_globals.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/test_globals.py b/Allura/allura/tests/test_globals.py
index d4c570e..e7f420d 100644
--- a/Allura/allura/tests/test_globals.py
+++ b/Allura/allura/tests/test_globals.py
@@ -5,7 +5,7 @@ from urllib import quote
 
 from bson import ObjectId
 
-from nose.tools import with_setup, assert_equal
+from nose.tools import with_setup, assert_equal, assert_in, assert_not_in
 from pylons import tmpl_context as c, app_globals as g
 
 from ming.orm import ThreadLocalORMSession
@@ -268,6 +268,8 @@ def test_markdown_autolink():
     assert_equal(
         s, '<div class="markdown_content"><p>This is <a href="%s" rel="nofollow">%s</a></p></div>'
% (tgt, tgt))
     assert '<a href=' in g.markdown.convert('This is http://sf.net')
+    assert_not_in('href', g.markdown.convert('literal `http://sf.net` literal'))
+    assert_not_in('href', g.markdown.convert('    preformatted http://sf.net'))
 
 
 def test_macro_projects():


Mime
View raw message