示例#1
0
文件: test_amt.py 项目: zeronewb/maas
 def test__get_ip_address_returns_power_address(self):
     amt_power_driver = AMTPowerDriver()
     power_address = factory.make_name('power_address')
     result = amt_power_driver._get_ip_address(power_address, None)
     self.assertEqual(result, power_address)
示例#2
0
 def test__get_ip_address_returns_ip_address(self):
     amt_power_driver = AMTPowerDriver()
     power_address = factory.make_name("power_address")
     ip_address = factory.make_ipv4_address()
     result = amt_power_driver._get_ip_address(power_address, ip_address)
     self.assertEqual(result, ip_address)