Skip to content
Snippets Groups Projects
Commit 2da2ae15 authored by martinRenou's avatar martinRenou
Browse files

Merge branch 'master' into update_documentation

parents 28082057 39350bc1
No related branches found
No related tags found
1 merge request!91Update the documentation
import unittest
from ..base_ui_hooks_manager import BaseUIHooksManager
from ..base_ui_hooks_factory import BaseUIHooksFactory
try:
import mock
except ImportError:
from unittest import mock
class TestBaseUIHooksManager(unittest.TestCase):
def test_initialization(self):
mock_factory = mock.Mock(spec=BaseUIHooksFactory)
mgr = BaseUIHooksManager(mock_factory)
self.assertEqual(mgr.factory, mock_factory)
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