summaryrefslogtreecommitdiff
path: root/src/leap/eip/tests/test_eipconnection.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-10-10 04:23:34 +0900
committerkali <kali@leap.se>2012-10-10 04:23:34 +0900
commit83bff4cad1e4345eb534cef28ea464b0b5a5e2fd (patch)
treea69faf733244797c9fc180da6bfe17480e931b0f /src/leap/eip/tests/test_eipconnection.py
parentf043f9087232a416bf9fa7dbb0b8f9b6f4e0a04e (diff)
fix failing test on test_eipconnection
Closes #738
Diffstat (limited to 'src/leap/eip/tests/test_eipconnection.py')
-rw-r--r--src/leap/eip/tests/test_eipconnection.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/leap/eip/tests/test_eipconnection.py b/src/leap/eip/tests/test_eipconnection.py
index ce9d39e2..bb643ae0 100644
--- a/src/leap/eip/tests/test_eipconnection.py
+++ b/src/leap/eip/tests/test_eipconnection.py
@@ -89,12 +89,19 @@ class EIPConductorTest(BaseLeapTest):
# config checks
def test_config_checked_called(self):
+ # XXX this single test is taking half of the time
+ # needed to run tests. (roughly 3 secs for this only)
+ # We should modularize and inject Mocks on more places.
+
del(self.con)
config_checker = Mock()
self.con = MockedEIPConnection(config_checker=config_checker)
self.assertTrue(config_checker.called)
self.con.run_checks()
- self.con.config_checker.run_all.assert_called_with(skip_download=False)
+ self.con.config_checker.run_all.assert_called_with(
+ skip_download=False)
+
+ # XXX test for cert_checker also
# connect/disconnect calls