- if opt.result.startswith('FAIL: \"') or opt.result == 'FAIL: not found':
- self.result = 'FAIL: {} not "{}"'.format(opt.name, opt.expected)
- elif opt.result == 'FAIL: not present':
- self.result = 'FAIL: {} not present'.format(opt.name)
+ if opt.result.startswith('FAIL: \"') or opt.result == 'FAIL: is not found':
+ self.result = 'FAIL: {} is not "{}"'.format(opt.name, opt.expected)
+ elif opt.result == 'FAIL: is not present':
+ self.result = 'FAIL: {} is not present'.format(opt.name)