예제 #1
0
 def testOptions(self):
     api = Luno('', '')
     self.assertEqual(api.hostname, 'api.mybitx.com')
     self.assertEqual(api.port, 443)
     self.assertEqual(api.pair, 'XBTZAR')
예제 #2
0
 def testConstructURL(self):
     api = Luno('', '')
     url = api.construct_url('test')
     self.assertEqual(url, 'https://api.mybitx.com/api/1/test')
예제 #3
0
 def testConstructor(self):
     api = Luno('', '', {})
     self.assertTrue(isinstance(api, Luno))