Exemplo n.º 1
0
 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")
Exemplo n.º 2
0
 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")
Exemplo n.º 3
0
 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 "_"')