Changeset 20 for trunk/tests/test_loader.py
- Timestamp:
- 08/12/05 16:15:19 (8 years ago)
- File:
-
- 1 edited
-
trunk/tests/test_loader.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/test_loader.py
r18 r20 130 130 'baseball teams': sets.Set(['Boston Red Sox', 'Detroit Tigers', 'New York Yankees']), 131 131 } 132 133 ALIASES = """ 134 foo: &bar baz 135 bar: *bar 136 """ 132 137 133 138 class TestDocuments(test_parser.TestDocuments): … … 258 263 self.assertEqual(syck.load(SET[0]), SET[1]) 259 264 265 class TestAliasesParsingAndLoading(unittest.TestCase): 266 267 def testAliasesParsing(self): 268 node = syck.parse(ALIASES) 269 values = node.value.values() 270 print values 271 print id(values[0]) 272 print id(values[1]) 273 self.assert_(values[0] is values[1]) 274 275 def testAliasesLoading(self): 276 document = syck.load(ALIASES) 277 self.assert_(document['foo'] is document['bar']) 278
Note: See TracChangeset
for help on using the changeset viewer.
