(self)
| 60 | print "pattern.search.variations()" |
| 61 | |
| 62 | def test_odict(self): |
| 63 | # Assert odict.append() which must be order-preserving. |
| 64 | v = search.odict() |
| 65 | v.push(("a", 1)) |
| 66 | v.push(("b", 2)) |
| 67 | v.push(("c", 3)) |
| 68 | v.push(("a", 0)) |
| 69 | v = v.copy() |
| 70 | self.assertTrue(isinstance(v, dict)) |
| 71 | self.assertEqual(v.keys(), ["a", "c","b"]) |
| 72 | print "pattern.search.odict()" |
| 73 | |
| 74 | #--------------------------------------------------------------------------------------------------- |
| 75 |