projects
/
mussa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make annotations sequenceable from python
[mussa.git]
/
py
/
test
/
TestAnnotations.py
diff --git
a/py/test/TestAnnotations.py
b/py/test/TestAnnotations.py
index 32949d47eab01eefdb49abdf9c88a217f91ab4d1..6c432bd98a4a5e1aad25c6fa691abc8d45b0585c 100644
(file)
--- a/
py/test/TestAnnotations.py
+++ b/
py/test/TestAnnotations.py
@@
-19,8
+19,9
@@
class TestAnnotations(unittest.TestCase):
def testIter(self):
name_value = 'name_value'
a = mussa.annotations(name_value)
def testIter(self):
name_value = 'name_value'
a = mussa.annotations(name_value)
- # It'd be nice if this worked.
- # l = [ x for x in a ]
+ l = [ x for x in a ]
+ self.failUnlessEqual(len(l), 1)
+ self.failUnlessEqual(l[0], ('name', 'name_value'))
def suite():
return unittest.makeSuite(TestAnnotations, 'test')
def suite():
return unittest.makeSuite(TestAnnotations, 'test')