def there_should_be_an_indicator_named(name): world.assertEquals(world.indicator.name, name)
def the_error_output_should_be(match): world.assertEquals(world.stderr, match)
def the_output_is_shown_with(expected_lines): lines = world.popen['zenity'].stdin.getvalue().rstrip() print repr(lines) # ignore the two-line header lines = "\n".join(lines.splitlines()[2:]) world.assertEquals(lines, expected_lines)
def the_output_should_be(match): world.assertEquals(world.stdout, match)