Esempio n. 1
0
 def test_get_ip_info_empty(self):
     result = api_pricing.get_ip_info(ipaddress='3.3.3.3')
     self.assertEquals(result, {})
Esempio n. 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,
     })
Esempio n. 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,
     })
Esempio n. 4
0
 def test_get_ip_info_empty(self):
     result = api_pricing.get_ip_info(ipaddress='3.3.3.3')
     self.assertEquals(result, {})
Esempio n. 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,
     })
Esempio n. 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,
     })
Esempio n. 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})
Esempio n. 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})