示例#1
0
    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()
示例#2
0
 def test2_collate(cls):
     """Test collate."""
     sys.argv = [
         '--COLLATE', 'tandem.ini', 'omssa.ini', '--OUTPUT', 'collate.ini'
     ]
     Collate.main()
     assert os.path.exists('collate.ini')
示例#3
0
    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()
示例#4
0
    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()
示例#5
0
 def test2_collate(self):
     sys.argv = ['--COLLATE', 'tandem.ini', 'omssa.ini', '--OUTPUT', 'collate.ini']
     Collate.main()
     assert os.path.exists('collate.ini')