Ejemplo n.º 1
0
 def test_parent_is_quota_container(self):
     folder = create(Builder('folder'))
     document = create(Builder('file').within(folder))
     self.assertEqual(folder, handlers.find_quota_parent(document))
Ejemplo n.º 2
0
 def test_stop_when_site_root_reached(self):
     document = create(Builder('file'))
     self.assertEqual(None, handlers.find_quota_parent(document))
Ejemplo n.º 3
0
 def test_context_is_quota_container(self):
     folder = create(Builder('folder'))
     self.assertEqual(folder, handlers.find_quota_parent(folder))