def test_should_return_object_if_jedi_available(self): self.assertIsNotNone(jedibackend.JediBackend())
def test_should_return_none_if_no_rope(self, import_): import_.side_effect = ImportError self.assertIsNone(jedibackend.JediBackend())
def setUp(self): super(JediBackendTestCase, self).setUp() self.backend = jedibackend.JediBackend()