Example #1
0
    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)
Example #2
0
    def test_abstract_is_link(self):
        mock_process = mock.MagicMock()
        mock_process.abstract = 'http://foo'

        ret = abstract_is_link(mock_process)

        self.assertTrue(ret)
Example #3
0
    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)
Example #4
0
    def test_abstract_is_link(self):
        mock_process = mock.MagicMock()
        mock_process.abstract = 'http://foo'

        ret = abstract_is_link(mock_process)

        self.assertTrue(ret)
Example #5
0
    def test_abstract_is_link_attribute_error(self):
        ret = abstract_is_link(process=None)

        self.assertFalse(ret)
Example #6
0
    def test_abstract_is_link_attribute_error(self):
        ret = abstract_is_link(process=None)

        self.assertFalse(ret)