Exemple #1
0
 def test_fix_autoexec_4(self):
     os.chdir('tests/files/confs')
     old = ['IMGMOUNT c dir/file', '@imgmount D "DIR/FILE"']
     new = ['imgmount C "Dir/file"', 'imgmount D "Dir/file"']
     self.assertEqual(list(confgen.to_linux_autoexec(old)), new)
Exemple #2
0
 def test_fix_autoexec_3(self):
     os.chdir('tests/files/confs')
     old = ['mount c dir', '@mount D "a b"', 'MOUNT E ABC\\DEF']
     new = ['mount C "Dir"', 'mount D "A B"', 'mount E "abc/DEF"']
     self.assertEqual(list(confgen.to_linux_autoexec(old)), new)
Exemple #3
0
 def test_fix_autoexec_1(self):
     os.chdir('tests/files/confs')
     old = ['mount c .', '@mount d .']
     new = ['mount C "."', 'mount D "."']
     self.assertEqual(list(confgen.to_linux_autoexec(old)), new)
Exemple #4
0
 def test_fix_autoexec_2(self):
     os.chdir('tests/files/confs')
     old = ['mount c .. -type cdrom', 'c:', 'MOUNT d ".."', r'D:\ ']
     new = ['mount C ".." -type cdrom', 'C:', 'mount D ".."', 'D:']
     self.assertEqual(list(confgen.to_linux_autoexec(old)), new)
Exemple #5
0
 def test_fix_autoexec_0(self):
     os.chdir('tests/files/confs')
     old = ['foo', 'bar baz']
     self.assertEqual(list(confgen.to_linux_autoexec(old)), old)