コード例 #1
0
ファイル: tests.py プロジェクト: pombreda/ralph
 def test_get_ip_info_empty(self):
     result = api_pricing.get_ip_info(ipaddress='3.3.3.3')
     self.assertEquals(result, {})
コード例 #2
0
ファイル: tests.py プロジェクト: pombreda/ralph
 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,
     })
コード例 #3
0
ファイル: tests.py プロジェクト: pombreda/ralph
 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,
     })
コード例 #4
0
ファイル: tests.py プロジェクト: ReJeCtAll/ralph
 def test_get_ip_info_empty(self):
     result = api_pricing.get_ip_info(ipaddress='3.3.3.3')
     self.assertEquals(result, {})
コード例 #5
0
ファイル: tests.py プロジェクト: ReJeCtAll/ralph
 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,
     })
コード例 #6
0
ファイル: tests.py プロジェクト: ReJeCtAll/ralph
 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,
     })
コード例 #7
0
ファイル: tests.py プロジェクト: deejay1/ralph
 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})
コード例 #8
0
ファイル: tests.py プロジェクト: deejay1/ralph
 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})