

def test_ip_lookup(self):
    result = self.network.ip_lookup('10.0.1.37')
    expected = fixtures.SoftLayer_Network_Subnet_IpAddress.getByIpAddress
    self.assertEqual(result, expected)
    self.assert_called_with('SoftLayer_Network_Subnet_IpAddress', 'getByIpAddress', args=('10.0.1.37',))

dataset/ETHPy150Open softlayer/softlayer-python/tests/managers/network_tests.py NetworkTests.test_ip_lookup/original