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)
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)