def test_abstract_is_link_false(self): mock_process = mock.MagicMock() mock_process.abstract = 'foo_bar' ret = abstract_is_link(mock_process) self.assertFalse(ret)
def test_abstract_is_link(self): mock_process = mock.MagicMock() mock_process.abstract = 'http://foo' ret = abstract_is_link(mock_process) self.assertTrue(ret)
def test_abstract_is_link_attribute_error(self): ret = abstract_is_link(process=None) self.assertFalse(ret)