152
152
self.run_action("adding path\n")
154
154
def run_action(self, output):
155
156
inv = inventory.Inventory()
157
158
action = add.AddAction(to_file=stdout, should_print=bool(output))
159
160
self.apply_redirected(None, stdout, None, action, inv, None,
161
162
self.assertEqual(stdout.getvalue(), output)