changeset 624:844ff806153c pytest2

added test by increasing the stack content - stack doesn't get empty at top = stack.pop(), in converter.include.XPointer
author pkumar <contactprashantat@gmail.com>
date Thu, 07 Jul 2011 14:17:46 +0530
parents b46fbeae2939
children e7ce4bd1ac93
files MoinMoin/converter/_tests/test_include.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/_tests/test_include.py	Wed Jul 06 18:28:11 2011 +0530
+++ b/MoinMoin/converter/_tests/test_include.py	Thu Jul 07 14:17:46 2011 +0530
@@ -47,4 +47,10 @@
     e = x[1]
     assert e.name == 'c'
     assert e.data == 'd'
+    
+    x = XPointer('a(a(b))')
+    assert len(x) == 1
+    e = x[0]
+    assert e.name == 'a'
+    assert e.data == 'a(b)'