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