~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: 2005-12-01 17:11:25 UTC
  • mto: (1185.50.19 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1532.
  • Revision ID: john@arbash-meinel.com-20051201171125-5e1f0970246c4925
Updated the bzr sourcecode to use bzrlib.osutils.pathjoin rather than os.path.join to enforce internal use of / instead of \

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import os
25
25
 
26
26
from bzrlib.tests import TestCaseInTempDir
 
27
from bzrlib.osutils import pathjoin
27
28
 
28
29
class PluginTest(TestCaseInTempDir):
29
30
    """Create an external plugin and test loading."""
30
31
#    def test_plugin_loading(self):
31
32
#        orig_help = self.run_bzr_captured('bzr help commands')[0]
32
33
#        os.mkdir('plugin_test')
33
 
#        f = open(os.path.join('plugin_test', 'myplug.py'), 'wt')
 
34
#        f = open(pathjoin('plugin_test', 'myplug.py'), 'wt')
34
35
#        f.write(PLUGIN_TEXT)
35
36
#        f.close()
36
37
#        newhelp = self.run_bzr_captured('bzr help commands')[0]
52
53
#         assert backtick('bzr myplug') == 'Hello from my plugin\n'
53
54
#         assert backtick('bzr mplg') == 'Hello from my plugin\n'
54
55
 
55
 
#         f = open(os.path.join('plugin_test', 'override.py'), 'wb')
 
56
#         f = open(pathjoin('plugin_test', 'override.py'), 'wb')
56
57
#         f.write("""import bzrlib, bzrlib.commands
57
58
#     class cmd_commit(bzrlib.commands.cmd_commit):
58
59
#         '''Commit changes into a new revision.'''