147
148
self.entry = InventoryEntry("id", "name", "file", None)
149
150
def test_null_callback(self):
153
154
def test_print_callback(self):
155
156
from StringIO import StringIO
157
self.apply_redirected(None, stdout, None, _PrintAddCallback,
158
self.apply_redirected(None, stdout, None, add_reporter_print,
158
159
'path', 'file', self.entry)
159
160
self.assertEqual(stdout.getvalue(), "added path\n")