Ejemplo n.º 1
0
    def test_delete_drive(self):
        drive_name = "home"

        fs = FileSystem()
        fs.create_drive(drive_name)

        fs.delete(drive_name)

        self.assertEqual(len(fs._drives), 0)
Ejemplo n.º 2
0
 def test_cannot_delete_non_existent_file(self):
     fs = FileSystem()
     with self.assertRaises(PathNotFoundException):
         fs.delete("home\\test")