~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_plugins.py

  • Committer: John Arbash Meinel
  • Date: 2009-09-15 00:39:40 UTC
  • mto: (4634.40.4 2.0.0)
  • mto: This revision was merged to the branch mainline in revision 4705.
  • Revision ID: john@arbash-meinel.com-20090915003940-qsyb0xk8lxoetzp3
Handle a plugin fallback versioning issue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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']
393
 
        self.assertEqual("1.2.3.dev.4", plugin.__version__)
 
393
        self.assertEqual("1.2.3dev4", plugin.__version__)
394
394
 
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__)
399
399
 
 
400
    def test_final_fallback__version__with_version_info(self):
 
401
        self.setup_plugin("version_info = (1, 2, 3, 'final', 2)")
 
402
        plugin = bzrlib.plugin.plugins()['plugin']
 
403
        self.assertEqual("1.2.3.final.2", plugin.__version__)
 
404
 
400
405
 
401
406
class TestPluginHelp(TestCaseInTempDir):
402
407