Skip to content

Commit

Permalink
simplify buildslave.commands.shell test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Aug 20, 2010
1 parent 0aab784 commit 19195d8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions slave/buildslave/test/unit/test_commands_shell.py
Expand Up @@ -6,13 +6,6 @@
from buildslave.test.util.command import CommandTestMixin
from buildslave.commands import shell

def filter_hdr(updates):
def f(u):
if 'header' in u:
return 'hdr'
return u
return [ f(u) for u in updates ]

class TestSlaveShellCommand(CommandTestMixin, unittest.TestCase):

def setUp(self):
Expand All @@ -37,7 +30,7 @@ def test_simple(self):

# note that SlaveShellCommand does not add any extra updates of it own
def check(_):
self.assertEqual(filter_hdr(self.get_updates()),
self.assertEqual(self.get_updates(),
[{'hdr': 'headers'}, {'stdout': 'hello\n'}, {'rc': 0}],
self.builder.show())
d.addCallback(check)
Expand Down

0 comments on commit 19195d8

Please sign in to comment.