298
298
with open(name, 'w') as f:
300
"breezy.api.require_any_api(breezy, [(1, 0, 0)])\n")
301
"raise IncompatibleVersion(breezy, [(1, 0, 0)], (0, 0, 5))\n")
301
302
log = self.load_and_capture(name)
302
303
self.assertNotContainsRe(log,
304
305
self.assertEqual({'wants100'}, viewkeys(self.plugin_warnings))
306
307
self.plugin_warnings['wants100'][0],
309
310
def test_plugin_with_bad_name_does_not_load(self):
310
311
# The file name here invalid for a python module.