(self)
| 263 | r.register(Item('a')) |
| 264 | |
| 265 | def testSortRegistry(self): |
| 266 | r = markdown.util.Registry() |
| 267 | r.register(Item('a'), 'a', 20) |
| 268 | r.register(Item('b'), 'b', 21) |
| 269 | r.register(Item('c'), 'c', 20.5) |
| 270 | self.assertEqual(len(r), 3) |
| 271 | self.assertEqual(list(r), ['b', 'c', 'a']) |
| 272 | |
| 273 | def testIsSorted(self): |
| 274 | r = markdown.util.Registry() |