390
390
def test_dev_fallback__version__with_version_info(self):
391
391
self.setup_plugin("version_info = (1, 2, 3, 'dev', 4)")
392
392
plugin = bzrlib.plugin.plugins()['plugin']
395
395
def test_final__version__with_version_info(self):
396
396
self.setup_plugin("version_info = (1, 2, 3, 'final', 0)")
397
397
plugin = bzrlib.plugin.plugins()['plugin']
398
398
self.assertEqual("1.2.3", plugin.__version__)
401
self.setup_plugin("version_info = (1, 2, 3, 'final', 2)")
401
406
class TestPluginHelp(TestCaseInTempDir):