Rev 2257: Cleanup commented out cruft in plugin tests. in file:///home/robertc/source/baz/plugin-hook/

Robert Collins robertc at robertcollins.net
Fri Feb 2 10:48:08 GMT 2007


------------------------------------------------------------
revno: 2257
revision-id: robertc at robertcollins.net-20070202104806-2lfxhf4zsocxuc43
parent: pqm at pqm.ubuntu.com-20070202061004-5fdd6c2715ccaaa9
committer: Robert Collins <robertc at robertcollins.net>
branch nick: plugin-hook
timestamp: Fri 2007-02-02 21:48:06 +1100
message:
  Cleanup commented out cruft in plugin tests.
modified:
  bzrlib/tests/test_plugins.py   plugins.py-20050622075746-32002b55e5e943e9
=== modified file 'bzrlib/tests/test_plugins.py'
--- a/bzrlib/tests/test_plugins.py	2006-12-29 07:53:17 +0000
+++ b/bzrlib/tests/test_plugins.py	2007-02-02 10:48:06 +0000
@@ -31,47 +31,6 @@
 from bzrlib.tests import TestCaseInTempDir
 from bzrlib.osutils import pathjoin, abspath
 
-class PluginTest(TestCaseInTempDir):
-    """Create an external plugin and test loading."""
-#    def test_plugin_loading(self):
-#        orig_help = self.run_bzr_captured('bzr help commands')[0]
-#        os.mkdir('plugin_test')
-#        f = open(pathjoin('plugin_test', 'myplug.py'), 'wt')
-#        f.write(PLUGIN_TEXT)
-#        f.close()
-#        newhelp = self.run_bzr_captured('bzr help commands')[0]
-#        assert newhelp.startswith('You have been overridden\n')
-#        # We added a line, but the rest should work
-#        assert newhelp[25:] == help
-#
-#        assert backtick('bzr commit -m test') == "I'm sorry dave, you can't do that\n"
-#
-#        shutil.rmtree('plugin_test')
-#
-
-#         os.environ['BZRPLUGINPATH'] = abspath('plugin_test')
-#         help = backtick('bzr help commands')
-#         assert help.find('myplug') != -1
-#         assert help.find('Just a simple test plugin.') != -1
-
-
-#         assert backtick('bzr myplug') == 'Hello from my plugin\n'
-#         assert backtick('bzr mplg') == 'Hello from my plugin\n'
-
-#         f = open(pathjoin('plugin_test', 'override.py'), 'wb')
-#         f.write("""import bzrlib, bzrlib.commands
-#     class cmd_commit(bzrlib.commands.cmd_commit):
-#         '''Commit changes into a new revision.'''
-#         def run(self, *args, **kwargs):
-#             print "I'm sorry dave, you can't do that"
-
-#     class cmd_help(bzrlib.commands.cmd_help):
-#         '''Show help on a command or other topic.'''
-#         def run(self, *args, **kwargs):
-#             print "You have been overridden"
-#             bzrlib.commands.cmd_help.run(self, *args, **kwargs)
-
-#         """
 
 PLUGIN_TEXT = """\
 import bzrlib.commands



More information about the bazaar-commits mailing list