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