1 # Copyright (C) 2008 Canonical Limited.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; version 2 of the License or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 """Tests for bzr-fastimport."""
20 from bzrlib
import errors
as bzr_errors
21 from bzrlib
.tests
import TestLoader
23 from bzrlib
.tests
.features
import Feature
24 except ImportError: # bzr < 2.5
25 from bzrlib
.tests
import Feature
26 from bzrlib
.plugins
.fastimport
import load_fastimport
29 class _FastimportFeature(Feature
):
34 except bzr_errors
.DependencyNotPresent
:
38 def feature_name(self
):
42 FastimportFeature
= _FastimportFeature()
47 module_names
= [__name__
+ '.' + x
for x
in [
51 'test_generic_processor',
52 'test_revision_store',
55 return loader
.loadTestsFromModuleNames(module_names
)