def setUpClass(cls):
     """ 
     Set up SMC Session object once per test class. Primary reason is
     to load the Mock session object as smc.api.session._session since
     this assumes we will not have a real connection.
     """
     super(RouteMocks, cls).setUpClass()
     inject_mock_for_smc()
Example #2
0
 def setUpClass(cls):
     """ 
     Set up SMC Session object once per test class. Primary reason is
     to load the Mock session object as smc.api.session._session since
     this assumes we will not have a real connection.
     """
     super(NodeTests, cls).setUpClass()
     inject_mock_for_smc()
     cls.node = Node(href='{}/node'.format(url))
     etag, data = cls.node_cache()
     cls.node.data = SimpleElement(etag=etag, **data)
 def setUpClass(cls):
     """ 
     Set up SMC Session object once per test class. Primary reason is
     to load the Mock session object as smc.api.session._session since
     this assumes we will not have a real connection.
     """
     super(CreateEngineTest, cls).setUpClass()
     s = inject_mock_for_smc()
     s._api_version = 6.1
     print(s.api_version)