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