Rev 2246: Start adding tests for launchpad indirection in file:///home/mbp/bzr/Work/lpurl/

Martin Pool mbp at sourcefrog.net
Fri Jan 26 00:28:02 GMT 2007


------------------------------------------------------------
revno: 2246
revision-id: mbp at sourcefrog.net-20070126002801-uffztaglri8w29jl
parent: pqm at pqm.ubuntu.com-20070125194626-4ded330415b7276d
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: lpurl
timestamp: Fri 2007-01-26 11:28:01 +1100
message:
  Start adding tests for launchpad indirection
added:
  bzrlib/plugins/launchpad/test_lp_indirect.py test_lp_indirect.py-20070126002743-oyle362tzv9cd8mi-1
modified:
  bzrlib/plugins/launchpad/__init__.py __init__.py-20060315182712-2d5feebd2a1032dc
=== added file 'bzrlib/plugins/launchpad/test_lp_indirect.py'
--- a/bzrlib/plugins/launchpad/test_lp_indirect.py	1970-01-01 00:00:00 +0000
+++ b/bzrlib/plugins/launchpad/test_lp_indirect.py	2007-01-26 00:28:01 +0000
@@ -0,0 +1,24 @@
+# Copyright (C) 2007 Canonical Ltd
+#
+# 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
+
+"""Tests for indirect branch urls through Launchpad.net"""
+
+from bzrlib.tests import TestCase, TestSkipped
+
+class IndirectUrlTests(TestCase):
+
+    def test_nothing(self):
+        self.fail()

=== modified file 'bzrlib/plugins/launchpad/__init__.py'
--- a/bzrlib/plugins/launchpad/__init__.py	2006-10-11 23:08:27 +0000
+++ b/bzrlib/plugins/launchpad/__init__.py	2007-01-26 00:28:01 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 2006 Canonical Ltd
+# Copyright (C) 2006, 2007 Canonical Ltd
 #
 # 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
@@ -119,4 +119,10 @@
     """Called by bzrlib to fetch tests for this plugin"""
     from unittest import TestSuite, TestLoader
     import test_register
-    return TestLoader().loadTestsFromModule(test_register)
+    import test_lp_indirect
+
+    loader = TestLoader()
+    suite = TestSuite()
+    for m in [test_register, test_lp_indirect]:
+        suite.addTests(loader.loadTestsFromModule(m))
+    return suite




More information about the bazaar-commits mailing list