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