1
# Copyright (C) 2006 Canonical Ltd
1
# Copyright (C) 2006, 2007 Canonical Ltd
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
5
5
# the Free Software Foundation; either version 2 of the License, or
6
6
# (at your option) any later version.
8
8
# This program is distributed in the hope that it will be useful,
9
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
11
# GNU General Public License for more details.
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
TestCase = tests.TestCase
23
TestCaseInTempDir = tests.TestCaseInTempDir
24
TestCaseWithTransport = tests.TestCaseWithTransport
27
class _GitCommandFeature(tests.Feature):
32
p = subprocess.Popen(['git', '--version'], stdout=subprocess.PIPE)
35
out, err = p.communicate()
36
trace.mutter('Using: %s', out.rstrip('\n'))
39
def feature_name(self):
42
GitCommandFeature = _GitCommandFeature()
18
from unittest import TestSuite, TestLoader
20
from bzrlib.tests import TestUtil
22
loader = TestUtil.TestLoader()
26
testmod_names = ['test_ids']
28
suite.addTest(loader.loadTestsFromModuleNames(["%s.%s" % (__name__, i) for i in testmod_names]))
46
loader = tests.TestLoader()
48
suite = tests.TestSuite()
53
'test_git_repository',
56
testmod_names = ['%s.%s' % (__name__, t) for t in testmod_names]
57
suite.addTests(loader.loadTestsFromModuleNames(testmod_names))