'Run esptool.py image_info on a binary file,
assert no red flags about contents.'

def assertImageInfo(self, binpath, chip='esp8266'):

    cmd = [sys.executable, ESPTOOL_PY, '--chip', chip, 'image_info', binpath]
    try:
        output = subprocess.check_output(cmd).decode('utf-8')
        print output
    except subprocess.CalledProcessError as e:
        print e.output
        raise
    self.assertFalse(('invalid' in output), 'Checksum    calculation    should    be    valid')
    self.assertFalse(('warning' in output.lower()), 'Should    be    no    warnings    in    image_info    output')
