Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #5
0
    def test_abstract_is_link_attribute_error(self):
        ret = abstract_is_link(process=None)

        self.assertFalse(ret)
Пример #6
0
    def test_abstract_is_link_attribute_error(self):
        ret = abstract_is_link(process=None)

        self.assertFalse(ret)