289
292
def test_plugin_with_bad_api_version_reports(self):
290
293
"""Try loading a plugin that requests an unsupported api.
297
299
with open(name, 'w') as f:
298
300
f.write("import breezy\n"
299
301
"from breezy.errors import IncompatibleVersion\n"
300
302
"raise IncompatibleVersion(breezy, [(1, 0, 0)], (0, 0, 5))\n")
304
305
self.assertEqual({'wants100'}, viewkeys(self.plugin_warnings))
306
307
self.plugin_warnings['wants100'][0],