Exemplo n.º 1
0
 def test_object_path(self):
     """Test object_path method."""
     s = Store(root='x/y', disposition='identity')
     self.assertEqual(s.object_path('id1'), 'id1')
     s = Store(root='z/a', disposition='uuid_quadtree')
     self.assertEqual(
         s.object_path('urn:uuid:6ba7b810-9dad-11d1-80b4-00c04fd430c8'),
         '6ba7/b810/9dad/11d1/80b4/00c0/4fd4/30c8')
Exemplo n.º 2
0
 def test05_object_path(self):
     """Test object_path method."""
     s = Store(root='x/y', disposition='identity')
     self.assertEqual(s.object_path('id1'), 'x/y/id1')