Example #1
0
 def test_get_ip_info_empty(self):
     result = api_pricing.get_ip_info(ipaddress='3.3.3.3')
     self.assertEquals(result, {})
Example #2
0
 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,
     })
Example #3
0
 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,
     })
Example #4
0
 def test_get_ip_info_empty(self):
     result = api_pricing.get_ip_info(ipaddress='3.3.3.3')
     self.assertEquals(result, {})
Example #5
0
 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,
     })
Example #6
0
 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,
     })
Example #7
0
 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})
Example #8
0
 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})