equal
deleted
inserted
replaced
16 # |
16 # |
17 #Description: |
17 #Description: |
18 #=============================================================================== |
18 #=============================================================================== |
19 """ test free disk """ |
19 """ test free disk """ |
20 |
20 |
21 # pylint: disable-msg=R0201 |
21 # pylint: disable=R0201 |
22 |
22 |
23 import unittest |
23 import unittest |
24 import logging |
24 import logging |
25 import os, string |
25 import os, string |
26 import sys |
26 import sys |
65 |
65 |
66 def test_wrong_drive_letter(self): |
66 def test_wrong_drive_letter(self): |
67 """ |
67 """ |
68 Tests with drive which does not exist |
68 Tests with drive which does not exist |
69 """ |
69 """ |
|
70 print 'Running: ' + 'python -m freedisk -d %s: -s 10 ' % self.drive_letter |
70 output = os.system('python -m freedisk -d %s: -s 10 ' % self.drive_letter) |
71 output = os.system('python -m freedisk -d %s: -s 10 ' % self.drive_letter) |
|
72 print 'output: ' + str(output) |
71 assert(output==-2) |
73 assert(output==-2) |
72 |
74 |
73 def test_missing_parameters(self): |
75 def test_missing_parameters(self): |
74 """ |
76 """ |
75 Several cases to give invalid parameters |
77 Several cases to give invalid parameters |