Exemplo n.º 1
0
    def test_exchanges_check_elements(self):
        exp_exs = ['bitcurex',
                   'bitfinex',
                   'bitstamp',
                   'btcchina',
                   'btce',
                   'campbx',
                   'cryptotrade',
                   'cryptsy',
                   'intersango',
                   'justcoin',
                   'localbitcoins',
                   'mtgox',
                   'rocktrading',
                   'coinse']

        exs = pyexchange.exchanges()
        self.assertIsInstance(exs, list)
        self.assertListEqual(exp_exs, exs)
Exemplo n.º 2
0
 def test_exchange_creation(self):
     for ex in pyexchange.exchanges():
         ex_obj = pyexchange.new_exchange(ex)
         self.assertIsInstance(ex_obj, models.Exchange)
Exemplo n.º 3
0
 def test_exchanges_is_list(self):
     exs = pyexchange.exchanges()
     self.assertIsInstance(exs, list)
Exemplo n.º 4
0
 def test_exchanges_not_empty(self):
     exs = pyexchange.exchanges()
     self.assertNotEqual(exs, [])
Exemplo n.º 5
0
 def test_exchanges_not_none(self):
     exs = pyexchange.exchanges()
     self.assertIsNotNone(exs)