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