Example #1
0
 def test_rm(self):
     #Function rm
     pre = os.listdir(".")
     fh = open("testrm","w")
     fh.close()
     shex.rm("testrm")
     assert(os.listdir(".")==pre)
Example #2
0
 def test_curl(self):
     #Function curl
     url = "http://sbgrid.org/grid_amd.jpg"
     shex.curl(url) 
     shex.rm("grid_amd.jpg")
Example #3
0
 def bad_rm(self):
     list = os.listdir(".")
     shex.rm("badfile")
     assert(os.listdir(".")==list)