def test_get_ip_info_empty(self): result = api_pricing.get_ip_info(ipaddress='3.3.3.3') self.assertEquals(result, {})
def test_get_ip_info(self): result = api_pricing.get_ip_info(ipaddress='1.1.1.1') self.assertEquals(result, { 'device_id': self.device.id, 'venture_id': self.venture.id, })
def test_get_ip_info_without_device(self): result = api_pricing.get_ip_info(ipaddress='2.2.2.2') self.assertEquals(result, { 'venture_id': self.venture.id, })
def test_get_ip_info_empty(self): result = api_pricing.get_ip_info(ipaddress='3.3.3.3') self.assertEquals(result, {})
def test_get_ip_info_without_device(self): result = api_pricing.get_ip_info(ipaddress='2.2.2.2') self.assertEquals(result, { 'venture_id': self.venture.id, })
def test_get_ip_info(self): result = api_pricing.get_ip_info(ipaddress='1.1.1.1') self.assertEquals(result, { 'device_id': self.device.id, 'venture_id': self.venture.id, })
def test_get_ip_info_without_device(self): result = api_pricing.get_ip_info(ipaddress="2.2.2.2") self.assertEquals(result, {"venture_id": self.venture.id})
def test_get_ip_info(self): result = api_pricing.get_ip_info(ipaddress="1.1.1.1") self.assertEquals(result, {"device_id": self.device.id, "venture_id": self.venture.id})