public function outputShouldBe(PyStringNode $string)
{
$expected = $string->getStrings();
foreach ($this->output as $index => $line) {
if ($line !== $expected[$index]) {
throw new \Exception(sprintf("instead of\n%s", implode("\n", $this->output)));
}
}
}