Merge "Add python ipmi library to iso" into stable/colorado
[apex.git] / tests / test_apex_network_environment.py
index 90c8907..9dcaffc 100644 (file)
@@ -33,10 +33,13 @@ class TestNetworkEnvironment(object):
         """This method is run once after _each_ test method is executed"""
 
     def test_init(self):
-        assert_raises(NetworkEnvException, NetworkEnvironment, None, '../build/network-environment.yaml')
+        assert_raises(NetworkEnvException, NetworkEnvironment,
+                      None, '../build/network-environment.yaml')
 
     def test_get_netenv_settings(self):
         ns = NetworkSettings('../config/network/network_settings.yaml', True)
-        ne = NetworkEnvironment(ns, '../build/network-environment.yaml')
-        assert_is_instance(ne.get_netenv_settings(), dict)
-        assert_not_equal(ne.get_netenv_settings(), {})
+        ne = NetworkEnvironment(ns, '../build/network-environment.yaml',
+                                compute_pre_config=True,
+                                controller_pre_config=True)
+        assert_is_instance(ne, dict)
+        assert_not_equal(ne, {})