fuel-main/test/integration/base.py
Nikolay Markov 31836755d7 test ip fix
2012-09-20 09:59:09 +00:00

16 lines
513 B
Python

from unittest.case import TestCase
from integration import ci
from helpers import HTTPClient
import logging
logging.basicConfig(format=':%(lineno)d: %(asctime)s %(message)s', level=logging.DEBUG)
class Base(TestCase):
def get_admin_node_ip(self):
if ci is not None and ci.environment is not None:
return str(ci.environment.node['admin'].ip_address)
else:
return "10.0.0.2"
def get_id_by_mac(self, mac_address):
return mac_address.replace(":", "").upper()