omit self.code if TestInteractive
header content should not contain newlines