예제 #1
0
파일: test_api.py 프로젝트: CjS77/pybitx
 def testConstructURLWithPort(self):
     options = {
         'port': 40000
     }
     api = BitX('', '', options)
     url = api.construct_url('test')
     self.assertEqual(url, 'https://api.mybitx.com:40000/api/1/test')
예제 #2
0
파일: test_api.py 프로젝트: CjS77/pybitx
 def testConstructURLWithHost(self):
     options = {
         'hostname': 'localhost',
     }
     api = BitX('', '', options)
     url = api.construct_url('test')
     self.assertEqual(url, 'https://localhost/api/1/test')
예제 #3
0
 def testConstructURLWithHost(self):
     options = {
         'hostname': 'localhost',
     }
     api = BitX('', '', options)
     url = api.construct_url('test')
     self.assertEqual(url, 'https://localhost/api/1/test')
예제 #4
0
파일: test_api.py 프로젝트: CjS77/pybitx
 def testConstructURL(self):
     api = BitX('', '')
     url = api.construct_url('test')
     self.assertEqual(url, 'https://api.mybitx.com/api/1/test')
예제 #5
0
 def testConstructURLWithPort(self):
     options = {'port': 40000}
     api = BitX('', '', options)
     url = api.construct_url('test')
     self.assertEqual(url, 'https://api.mybitx.com:40000/api/1/test')
예제 #6
0
 def testConstructURL(self):
     api = BitX('', '')
     url = api.construct_url('test')
     self.assertEqual(url, 'https://api.mybitx.com/api/1/test')