def test3_split(self): sys.argv = [ '--INPUT', 'input.ini', '--SPLIT', 'split.ini', '--SPLIT_KEY', 'SOMEKEY' ] Split.main() assert os.path.exists('split.ini_0') assert os.path.exists('split.ini_1')
def test4_split(self): sys.argv = ['--INPUT', 'forecho.ini', '--SPLIT', 'split.ini', '--SPLIT_KEY', 'COMMENT'] Split.main() assert os.path.exists('split.ini_0') assert 'comm' in open('split.ini_0').read() assert not 'ent' in open('split.ini_0').read() assert os.path.exists('split.ini_1') assert not 'comm' in open('split.ini_1').read() assert 'ent' in open('split.ini_1').read()
def test4_split(cls): """Test split.""" sys.argv = ['--INPUT', 'forecho.ini', '--SPLIT', 'split.ini', '--SPLIT_KEY', 'COMMENT'] Split.main() assert os.path.exists('split.ini_0') assert 'comm' in open('split.ini_0', 'r').read() assert not 'ent' in open('split.ini_0', 'r').read() assert os.path.exists('split.ini_1') assert not 'comm' in open('split.ini_1', 'r').read() assert 'ent' in open('split.ini_1', 'r').read()
def test3_split(self): sys.argv = ['--INPUT', 'input.ini', '--SPLIT', 'split.ini', '--SPLIT_KEY', 'SOMEKEY'] Split.main() assert os.path.exists('split.ini_0') assert os.path.exists('split.ini_1')
def generator(infile, unused_outfile): sys.argv = [ '--INPUT', infile, '--SPLIT', 'split.ini', '--SPLIT_KEY', 'DATASET_CODE' ] Split.main()
def generator(infile, unused_outfile): sys.argv = ['--INPUT', infile, '--SPLIT', 'split.ini', '--SPLIT_KEY', 'DATASET_CODE'] Split.main()
def split_dataset(infile, unused_outfile): sys.argv = [ '--INPUT', infile, '--SPLIT', 'split.ini', '--SPLIT_KEY', 'MZXML' ] Split.main()
def split_dataset(infile, unused_outfile): sys.argv = ['--INPUT', infile, '--SPLIT', 'split.ini', '--SPLIT_KEY', 'MZXML'] Split.main()