diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2014-01-18 18:56:58 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2014-01-18 18:56:58 +0000 |
commit | f2dcee15878229dee2362513c2d263f634decd81 (patch) | |
tree | 0d21e51b9783fef5f53748d30028502eb49592c8 | |
parent | 43d6bde3f69d1b6b50c529c7d33ea544b5af618c (diff) | |
download | python-fastimport-git-f2dcee15878229dee2362513c2d263f634decd81.tar.gz |
Remove dependency on testtools.
-rw-r--r-- | fastimport/tests/test_commands.py | 2 | ||||
-rw-r--r-- | fastimport/tests/test_dates.py | 2 | ||||
-rw-r--r-- | fastimport/tests/test_errors.py | 2 | ||||
-rw-r--r-- | fastimport/tests/test_filter_processor.py | 2 | ||||
-rw-r--r-- | fastimport/tests/test_helpers.py | 4 | ||||
-rw-r--r-- | fastimport/tests/test_parser.py | 12 |
6 files changed, 12 insertions, 12 deletions
diff --git a/fastimport/tests/test_commands.py b/fastimport/tests/test_commands.py index 7da7e11..1259798 100644 --- a/fastimport/tests/test_commands.py +++ b/fastimport/tests/test_commands.py @@ -15,7 +15,7 @@ """Test how Commands are displayed""" -from testtools import TestCase +from unittest import TestCase from fastimport import ( commands, diff --git a/fastimport/tests/test_dates.py b/fastimport/tests/test_dates.py index aae8b78..f893da9 100644 --- a/fastimport/tests/test_dates.py +++ b/fastimport/tests/test_dates.py @@ -15,7 +15,7 @@ """Test parsing of dates.""" -from testtools import TestCase +from unittest import TestCase from fastimport import ( dates, diff --git a/fastimport/tests/test_errors.py b/fastimport/tests/test_errors.py index bdd73b9..ef87b05 100644 --- a/fastimport/tests/test_errors.py +++ b/fastimport/tests/test_errors.py @@ -15,7 +15,7 @@ """Test the Import errors""" -from testtools import TestCase +from unittest import TestCase from fastimport import ( errors, diff --git a/fastimport/tests/test_filter_processor.py b/fastimport/tests/test_filter_processor.py index d6508f2..74847ad 100644 --- a/fastimport/tests/test_filter_processor.py +++ b/fastimport/tests/test_filter_processor.py @@ -17,7 +17,7 @@ from cStringIO import StringIO -from testtools import TestCase +from unittest import TestCase from fastimport import ( parser, diff --git a/fastimport/tests/test_helpers.py b/fastimport/tests/test_helpers.py index 64aee24..4f4b9f0 100644 --- a/fastimport/tests/test_helpers.py +++ b/fastimport/tests/test_helpers.py @@ -15,14 +15,14 @@ """Test the helper functions.""" -import testtools +import unittest from fastimport import ( helpers, ) -class TestCommonDirectory(testtools.TestCase): +class TestCommonDirectory(unittest.TestCase): def test_no_paths(self): c = helpers.common_directory(None) diff --git a/fastimport/tests/test_parser.py b/fastimport/tests/test_parser.py index 97d062b..c50c7d4 100644 --- a/fastimport/tests/test_parser.py +++ b/fastimport/tests/test_parser.py @@ -17,7 +17,7 @@ import StringIO -import testtools +import unittest from fastimport import ( commands, @@ -26,7 +26,7 @@ from fastimport import ( ) -class TestLineBasedParser(testtools.TestCase): +class TestLineBasedParser(unittest.TestCase): def test_push_line(self): s = StringIO.StringIO("foo\nbar\nbaz\n") @@ -144,7 +144,7 @@ multi-author test """ -class TestImportParser(testtools.TestCase): +class TestImportParser(unittest.TestCase): def test_iter_commands(self): s = StringIO.StringIO(_sample_import_text) @@ -287,7 +287,7 @@ more data self.assertEquals([], list(cmds)) -class TestStringParsing(testtools.TestCase): +class TestStringParsing(unittest.TestCase): def test_unquote(self): s = r'hello \"sweet\" wo\\r\tld' @@ -295,7 +295,7 @@ class TestStringParsing(testtools.TestCase): parser._unquote_c_string(s)) -class TestPathPairParsing(testtools.TestCase): +class TestPathPairParsing(unittest.TestCase): def test_path_pair_simple(self): p = parser.ImportParser("") @@ -307,7 +307,7 @@ class TestPathPairParsing(testtools.TestCase): p._path_pair('"foo bar" baz')) -class TestTagParsing(testtools.TestCase): +class TestTagParsing(unittest.TestCase): def test_tagger_with_email(self): p = parser.ImportParser(StringIO.StringIO( |