Exemple #1
0
 def test_get_network_settings(self):
     '''
     Test to return the contents of the global network script.
     '''
     with patch.object(rh_ip, '_read_file', return_value='A'):
         self.assertEqual(rh_ip.get_network_settings(), 'A')
Exemple #2
0
 def test_get_network_settings(self):
     '''
     Test to return the contents of the global network script.
     '''
     with patch.object(rh_ip, '_read_file', return_value='A'):
         self.assertEqual(rh_ip.get_network_settings(), 'A')
Exemple #3
0
 def test_get_network_settings(self):
     """
     Test to return the contents of the global network script.
     """
     with patch.object(rh_ip, "_read_file", return_value="A"):
         self.assertEqual(rh_ip.get_network_settings(), "A")