Skip to content
Snippets Groups Projects
Commit 28a8ca1b authored by Stefano Borini's avatar Stefano Borini
Browse files

Factory test

parent d06abb93
No related branches found
No related tags found
1 merge request!93UI Hooks
import unittest
from ..base_ui_hooks_factory import BaseUIHooksFactory
try:
import mock
except ImportError:
from unittest import mock
from envisage.api import Plugin
from ..base_ui_hooks_factory import BaseUIHooksFactory
class TestBaseUIHooksFactory(unittest.TestCase):
def test_initialize(self):
mock_plugin = mock.Mock(spec=Plugin)
factory = BaseUIHooksFactory(plugin=mock_plugin)
self.assertEqual(factory.plugin, mock_plugin)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment