diff --git a/tests/example.py b/tests/example.py index c8f630b..073a25c 100644 --- a/tests/example.py +++ b/tests/example.py @@ -66,7 +66,7 @@ ex_docbooksgml_dir = Namespace( 'DocBookSGML-Larger.sgml'), ) -unknown_doctype = Namespace( +unknown_doctype = Namespace( doctype=None, filename=opj(sampledocs, 'Unknown-Doctype.xqf'), ) diff --git a/tests/test_utils.py b/tests/test_utils.py index a2ada71..bea5594 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -225,7 +225,7 @@ class Test_swapdirs(TestToolsFilesystem): swapdirs(a, b) self.assertTrue(os.path.exists(b)) - def test_swapdirs_b_missing(self): + def test_swapdirs_with_file(self): a = mkdtemp(dir=self.tempdir) afile = os.path.join(a, 'silly') b = mkdtemp(dir=self.tempdir) @@ -242,6 +242,7 @@ class Test_swapdirs(TestToolsFilesystem): self.assertTrue(os.path.exists(b)) self.assertTrue(os.path.exists(bfile)) + class Test_att_statinfo(unittest.TestCase): def test_max_mtime(self):