comparison MoinMoin/converter/_tests/test_include.py @ 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 17931e46e2df
children beabd93b3904
comparison
equal deleted inserted replaced
623:b46fbeae2939 624:844ff806153c
45 assert e.name == 'a' 45 assert e.name == 'a'
46 assert e.data == 'b' 46 assert e.data == 'b'
47 e = x[1] 47 e = x[1]
48 assert e.name == 'c' 48 assert e.name == 'c'
49 assert e.data == 'd' 49 assert e.data == 'd'
50
51 x = XPointer('a(a(b))')
52 assert len(x) == 1
53 e = x[0]
54 assert e.name == 'a'
55 assert e.data == 'a(b)'
50 56