Home | Trees | Indices | Help |
---|
|
1 # -*- Mode: Python; test-case-name: moap.test.test_doap_doap -*- 2 # vi:si:et:sw=4:sts=4:ts=4 3 4 import os 5 import tempfile 6 7 from moap.util import usermap 8 9 from moap.test import common 1014 193121 file = tempfile.NamedTemporaryFile(suffix='moap') 22 file.write("""thomas:lisa 23 # this is a comment 24 mama:papa 25 """) 26 file.flush() # otherwise nothing is written yet 27 self.map.parseFromPath(file.name) 28 self.assertEquals(self.map[0], ('thomas', 'lisa')) 29 self.assertEquals(self.map[1], ('mama', 'papa')) 30 self.assertEquals(len(self.map), 2)
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat Aug 15 17:41:01 2009 | http://epydoc.sourceforge.net |