コード例 #1
0
ファイル: shextest.py プロジェクト: ijstokes/shex
 def bad_fsplit(self):
     fh = open("asdf", "r")
     a = shex.fsplit("testfile", 0)
     assert(a==['001', '002', '003', '004'])
     fh.close()
コード例 #2
0
ファイル: shextest.py プロジェクト: ijstokes/shex
 def test_fsplit(self):
     #Function fsplit
     fh = open("testfile", "r")
     a = shex.fsplit("testfile", 1)
     assert(a==['000', '001', '002', '003'])
     fh.close()