def test_should_ignore_should_return_true_on_excluded(self): file = self.fixture_path / "remote.py" result = RfhubImporter._should_ignore(file) self.assertTrue( result, "method should return true if file in EXCLUDED_LIBRARIES")
def test_should_ignore_should_return_false_on_library_to_import(self): file = self.fixture_path / "SingleClassLib" / "SingleClassLib.py" result = RfhubImporter._should_ignore(file) self.assertFalse( result, "method should return false if file should be imported")
def test_should_ignore_should_return_true_on_private(self): file = self.fixture_path / "_private_library.py" result = RfhubImporter._should_ignore(file) self.assertTrue(result, 'method should return true if file starts with "_"')