286
289
def test_plugin_with_bad_api_version_reports(self):
287
290
"""Try loading a plugin that requests an unsupported api.
294
296
with open(name, 'w') as f:
295
297
f.write("import breezy\n"
296
298
"from breezy.errors import IncompatibleVersion\n"
297
299
"raise IncompatibleVersion(breezy, [(1, 0, 0)], (0, 0, 5))\n")
301
302
self.assertEqual({'wants100'}, self.plugin_warnings.keys())
303
304
self.plugin_warnings['wants100'][0],