예제 #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)