コード例 #1
0
 def testConstructURLWithHost(self):
     options = {
         'hostname': 'localhost',
     }
     api = Luno('', '', options)
     url = api.construct_url('test')
     self.assertEqual(url, 'https://localhost/api/1/test')
コード例 #2
0
 def testConstructURLWithPort(self):
     options = {
         'port': 40000
     }
     api = Luno('', '', options)
     url = api.construct_url('test')
     self.assertEqual(url, 'https://api.mybitx.com:40000/api/1/test')
コード例 #3
0
ファイル: test_api.py プロジェクト: waleoyediran/pyluno
 def testConstructURLWithPort(self):
     options = {
         'port': 40000,
         'maxRate': None,
         'maxBurst': None,
     }
     api = Luno('', '', options)
     url = api.construct_url('test')
     self.assertEqual(url, 'https://api.mybitx.com:40000/api/1/test')
コード例 #4
0
ファイル: test_api.py プロジェクト: waleoyediran/pyluno
 def testConstructURLWithHost(self):
     options = {
         'hostname': 'localhost',
         'maxRate': None,
         'maxBurst': None,
     }
     api = Luno('', '', options)
     url = api.construct_url('test')
     self.assertEqual(url, 'https://localhost/api/1/test')
コード例 #5
0
ファイル: test_api.py プロジェクト: RexFuzzle/pybitx
 def testConstructURLWithPortAndHost(self):
     options = {
         'hostname': 'localhost',
         'port': 40000,
         'maxRate': None,
         'maxBurst': None,
     }
     api = Luno('', '', options)
     url = api.construct_url('test')
     self.assertEqual(url, 'https://localhost:40000/api/1/test')
コード例 #6
0
 def testConstructURL(self):
     api = Luno('', '')
     url = api.construct_url('test')
     self.assertEqual(url, 'https://api.mybitx.com/api/1/test')
コード例 #7
0
ファイル: test_api.py プロジェクト: waleoyediran/pyluno
 def testConstructURL(self):
     api = Luno('', '')
     url = api.construct_url('test')
     self.assertEqual(url, 'https://api.mybitx.com/api/1/test')