def test_is_libdoc_file_should_return_false_on_non_xml(self): file = self.fixture_path / "_private_library.py" result = RfhubImporter._is_libdoc_file(file) self.assertFalse( result, "method should return false if file is not libdoc file")
def test_is_libdoc_file_should_return_true_on_libdoc(self): file = self.fixture_path / "test_libdoc_file.xml" result = RfhubImporter._is_libdoc_file(file) self.assertTrue(result, "method should return true if file is libdoc file")