def test7_collate(self): sys.argv = ['--COLLATE', 'cp.ini', '--COLLATE', 'merged.ini_0','--OUTPUT','collate.ini'] Collate.main() assert os.path.exists('collate.ini') assert 'comm, ent' in open('collate.ini').read() assert 'COPY' in open('collate.ini').read()
def test2_collate(cls): """Test collate.""" sys.argv = [ '--COLLATE', 'tandem.ini', 'omssa.ini', '--OUTPUT', 'collate.ini' ] Collate.main() assert os.path.exists('collate.ini')
def test7_collate(cls): """Test collate.""" sys.argv = ['--COLLATE', 'cp.ini', '--COLLATE', 'merged.ini_0', '--OUTPUT', 'collate.ini'] Collate.main() assert os.path.exists('collate.ini') print(open('collate.ini', 'r').read()) assert 'comm, ent' in open('collate.ini', 'r').read() assert 'COPY' in open('collate.ini', 'r').read()
def test7_collate(self): sys.argv = [ '--COLLATE', 'cp.ini', '--COLLATE', 'merged.ini_0', '--OUTPUT', 'collate.ini' ] Collate.main() assert os.path.exists('collate.ini') assert 'comm, ent' in open('collate.ini').read() assert 'COPY' in open('collate.ini').read()
def test2_collate(self): sys.argv = ['--COLLATE', 'tandem.ini', 'omssa.ini', '--OUTPUT', 'collate.ini'] Collate.main() assert os.path.exists('collate.ini')