def test_get_bond(self): ''' Test to return the content of a bond 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_bond('iface'), 'A')
def test_get_bond(self): """ Test to return the content of a bond 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_bond("iface"), "A")