def test_easy_file(self):

        cmd = '%s %s -r 10 -o %s' % (fq_pgm, self.in_fqfn, self.out_fqfn)
        r   = envoy.run(cmd)
        p_recs = []
        for rec in fileinput.input(self.out_fqfn):
            p_recs.append(rec)
        fileinput.close()

        assert len(p_recs) == 4

        assert p_recs[0].strip().startswith('field_0')
        assert p_recs[0].strip().endswith('10')

        assert p_recs[1].strip().startswith('field_1')
        assert p_recs[1].strip().endswith('A')

        assert p_recs[2].strip().startswith('field_2')
        assert p_recs[2].strip().endswith('B')

        assert p_recs[3].strip().startswith('field_3')
        assert p_recs[3].strip().endswith('C')
dataset/ETHPy150Open kenfar/DataGristle/scripts/tests/test_gristle_viewer_cmd.py/TestCommandLine.test_easy_file/original