Пример #1
0
 def test_get_interface(self):
     '''
     Test to return the contents of an interface script
     '''
     with patch.object(os.path, 'join', return_value='A'):
         with patch.object(rh_ip, '_read_file', return_value='A'):
             self.assertEqual(rh_ip.get_interface('iface'), 'A')
Пример #2
0
 def test_get_interface(self):
     '''
     Test to return the contents of an interface script
     '''
     with patch.object(os.path, 'join', return_value='A'):
         with patch.object(rh_ip, '_read_file', return_value='A'):
             self.assertEqual(rh_ip.get_interface('iface'), 'A')
Пример #3
0
 def test_get_interface(self):
     """
     Test to return the contents of an interface script
     """
     with patch.object(os.path, "join", return_value="A"):
         with patch.object(rh_ip, "_read_file", return_value="A"):
             self.assertEqual(rh_ip.get_interface("iface"), "A")