def METHOD_NAME(self, path):
    """runs command and compares to expected output from def file"""
    # self.maxDiff = None # to see full diff
    with open(path, 'rb') as filehandle:
        datalines = filehandle.readlines()
        stdoutLines = int(datalines[2])
        self._runAndCheck(os.path.dirname(path),
                         datalines[0].decode('utf8').strip(),
                         int(datalines[1]),
                         [line.decode('utf8').strip() for line in datalines[3:3 + stdoutLines]],
                         [line.decode('utf8').strip() for line in datalines[3 + stdoutLines:]])