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')
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")