Ejemplo n.º 1
0
 def setUp(self):
     metadata = Metadata(cls=WebPage)
     title = MetadataProperty(u'Hello World', lang='en')
     metadata.set_property('title', title)
     self.metadata = metadata
     # Sandbox
     vfs.make_folder('sandbox')
Ejemplo n.º 2
0
 def setUp(self):
     metadata = Metadata(cls=WebPage)
     title = Property(u'Hello World', lang='en')
     metadata.set_property('title', title)
     self.metadata = metadata
     # Sandbox
     vfs.make_folder('sandbox')
Ejemplo n.º 3
0
 def test14_remove_folder(self):
     # Create hierarchy
     vfs.make_folder('tests/folder')
     vfs.make_folder('tests/folder/a')
     vfs.make_file('tests/folder/a/hello.txt')
     # Remove and test
     vfs.remove('tests/folder')
     self.assertEqual(vfs.exists('tests/folder'), False)
Ejemplo n.º 4
0
 def test14_remove_folder(self):
     # Create hierarchy
     vfs.make_folder('tests/folder')
     vfs.make_folder('tests/folder/a')
     vfs.make_file('tests/folder/a/hello.txt')
     # Remove and test
     vfs.remove('tests/folder')
     self.assertEqual(vfs.exists('tests/folder'), False)
Ejemplo n.º 5
0
 def test07_make_folder(self):
     vfs.make_folder('tests/folder')
     self.assertEqual(vfs.is_folder('tests/folder'), True)
Ejemplo n.º 6
0
 def setUp(self):
     vfs.make_folder('tmp')
Ejemplo n.º 7
0
 def setUp(self):
     self.tests = vfs.open('tests/')
     vfs.make_folder('tests/toto.txt')
Ejemplo n.º 8
0
 def test07_make_folder(self):
     vfs.make_folder('tests/folder')
     self.assertEqual(vfs.is_folder('tests/folder'), True)
Ejemplo n.º 9
0
 def setUp(self):
     vfs.make_folder('tmp')
Ejemplo n.º 10
0
 def setUp(self):
     self.tests = vfs.open('tests/')
     vfs.make_folder('tests/toto.txt')