[Pkg-bazaar-commits] ./bzr/unstable r743: - new simple versioning test cases
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:20:53 UTC 2009
------------------------------------------------------------
revno: 743
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-06-22 17:18:36 +1000
message:
- new simple versioning test cases
added:
bzrlib/selftest/versioning.py
modified:
bzrlib/selftest/__init__.py
-------------- next part --------------
=== modified file 'bzrlib/selftest/__init__.py'
--- a/bzrlib/selftest/__init__.py 2005-06-22 06:37:20 +0000
+++ b/bzrlib/selftest/__init__.py 2005-06-22 07:18:36 +0000
@@ -149,6 +149,7 @@
import bzrlib
import bzrlib.selftest.whitebox
import bzrlib.selftest.blackbox
+ import bzrlib.selftest.versioning
from doctest import DocTestSuite
import os
import shutil
@@ -160,7 +161,8 @@
suite = TestSuite()
tl = TestLoader()
- for m in bzrlib.selftest.whitebox, :
+ for m in bzrlib.selftest.whitebox, \
+ bzrlib.selftest.versioning:
suite.addTest(tl.loadTestsFromModule(m))
suite.addTest(bzrlib.selftest.blackbox.suite())
=== added file 'bzrlib/selftest/versioning.py'
--- a/bzrlib/selftest/versioning.py 1970-01-01 00:00:00 +0000
+++ b/bzrlib/selftest/versioning.py 2005-06-22 07:18:36 +0000
@@ -0,0 +1,31 @@
+# Copyright (C) 2005 by 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 of simple versioning operations"""
+
+
+from bzrlib.selftest import InTempDir
+
+class Mkdir(InTempDir):
+ def runTest(self):
+ from bzrlib.commands import run_bzr
+ import os
+
+ run_bzr(['bzr', 'init'])
+ run_bzr(['bzr', 'mkdir', 'foo'])
+ self.assert_(os.path.isdir('foo'))
+
More information about the Pkg-bazaar-commits
mailing list