/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_plugins.py

  • Committer: Alexander Belchenko
  • Date: 2008-04-06 06:44:55 UTC
  • mto: This revision was merged to the branch mainline in revision 3337.
  • Revision ID: bialix@ukr.net-20080406064455-mms91lq9wkecx5v9
fixing test_set_plugins_path_with_trailing_slashes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
428
428
            bzrlib.plugin.set_plugins_path()
429
429
            expected_path = ['first', 'second',
430
430
                os.path.dirname(bzrlib.plugins.__file__)]
431
 
            self.assertEqual(expected_path, bzrlib.plugins.__path__)
 
431
            self.assertEqual(expected_path,
 
432
                bzrlib.plugins.__path__[:len(expected_path)])
432
433
        finally:
433
434
            bzrlib.plugins.__path__ = old_path
434
435
            if old_env != None:
436
437
            else:
437
438
                del os.environ['BZR_PLUGIN_PATH']
438
439
 
 
440
 
439
441
class TestHelpIndex(tests.TestCase):
440
442
    """Tests for the PluginsHelpIndex class."""
441
443