예제 #1
0
 def test1_openFile(self):
     # Test the openFile function
     apptestutils.removeSilent(self.fn1)   # delete file from os file system
     self.assertFalse(os.path.exists(self.fn1),msg="Verify: file must not exist")
     f = openFile(self.fn1)
     print(type(f))
     #self.assertEquals(type(f),<type 'file'>)
     #self.assertIs(type(f),'file')
     self.assertTrue(os.path.exists(self.fn1),msg="Just created file does exist")
예제 #2
0
def _xxx():
    fn = ".\\testfile.txt"
    apptestutils.removeSilent(fn)