def test_easy_files(self):

        file1_recs = [ ['Alabama','8','18'],
                       ['Alaska','6','16'],
                       ['Arizona','4','14'],
                       ['Arkansas','2','12'] ]
        file1    = generate_test_file('|', file1_recs)

        file2_recs = [ ['Alabama','8','18'],
                       ['Arizona','4','1a'],
                       ['Arkansas','2a','12'],
                       ['Wisconsin','13a','45b'] ]
        file2    = generate_test_file('|', file2_recs)

        cmd = [os.path.join(script_path, 'gristle_differ'),
               '-1', file1,
               '-2', file2,
               '-k', '0',
               '-c', '1' ]
        p = subprocess.Popen(cmd,
                             stdout=subprocess.PIPE,
                             close_fds=True)
        p_output = p.communicate()[0]
        p_recs   = p_output[:-1].split('\n')
  
        for rec in p_recs:
            fields = rec.split(':')
            if fields[0].strip().startswith('In file1'):
                assert fields[1].strip() == 'Alaska'
            if fields[0].strip().startswith('In file2'):
                assert fields[1].strip() == 'Wisconsin'
            if fields[0].strip().startswith('In both'):
                assert fields[1].strip() == 'Arkansas'

        os.remove(file1)
        os.remove(file2)
Setup variables for tests.
dataset/ETHPy150Open kenfar/DataGristle/scripts/tests/test_gristle_differ_cmd.py/TestCommandLine.test_easy_files--crossover with--dataset/ETHPy150Open ktbyers/netmiko/tests/old_format/test_base_connection.py/setup_module