Rev 167: Add simple test for tortoise_bzr in file:///home/jelmer/bzr-gtk/trunk/
Jelmer Vernooij
jelmer at samba.org
Mon Mar 19 15:57:20 GMT 2007
At file:///home/jelmer/bzr-gtk/trunk/
------------------------------------------------------------
revno: 167
revision-id: jelmer at samba.org-20070309174728-gljlmt9b7fu0rrn9
parent: vernooij at lenovo-c29b82cd-20070309165451-v3h0d43a4godr2qa
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: gtk
timestamp: Fri 2007-03-09 17:47:28 +0000
message:
Add simple test for tortoise_bzr
added:
tests/test_tortoise_bzr.py test_tortoise_bzr.py-20070309174337-jc3vnh48k92dhzzk-1
modified:
tests/__init__.py __init__.py-20070201155018-mi2dl3spgj7fqdum-1
tests/test_history.py test_history.py-20070203142710-di1zstpkgnsmhoke-1
=== added file 'tests/test_tortoise_bzr.py'
--- a/tests/test_tortoise_bzr.py 1970-01-01 00:00:00 +0000
+++ b/tests/test_tortoise_bzr.py 2007-03-09 17:47:28 +0000
@@ -0,0 +1,28 @@
+# Copyright (C) 2007 Jelmer Venrooij <jelmer at samba.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+from bzrlib.tests import TestCaseInTempDir
+from bzrlib import config
+
+import win32com.client as client
+
+class TestsShellExtension(TestCaseInTempDir):
+ def setUp(self):
+ super(TestsUrlHistory, self).setUp()
+ self.ext = client.Dispatch("Bazaar.ShellExtension.ContextMenu")
+
+ def test_get_command_string(self):
+ self.assertEqual(u"Hello from Python!!", self.ext.GetCommandString(1,1))
=== modified file 'tests/__init__.py'
--- a/tests/__init__.py 2007-02-03 15:04:56 +0000
+++ b/tests/__init__.py 2007-03-09 17:47:28 +0000
@@ -17,6 +17,7 @@
from unittest import TestLoader, TestSuite
from bzrlib.tests import TestUtil
+import os
def test_suite():
result = TestSuite()
@@ -24,6 +25,10 @@
loader = TestUtil.TestLoader()
testmod_names = ['test_preferences', 'test_history']
+
+ if os.name == 'nt':
+ testmod_names.append("test_tortoise_bzr")
+
result.addTest(loader.loadTestsFromModuleNames(["%s.%s" % (__name__, i) for i in testmod_names]))
return result
=== modified file 'tests/test_history.py'
--- a/tests/test_history.py 2007-02-03 15:04:56 +0000
+++ b/tests/test_history.py 2007-03-09 17:47:28 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 2007 Jelmer Venrooij <jelmer at samba.org>
+# Copyright (C) 2007 Jelmer Vernooij <jelmer at samba.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
More information about the bazaar-commits
mailing list