@@ -0,0 +1,1618 @@
+from cryptotik import Bittrex%0Afrom decimal import Decimal%0A%0A%0Adef test_format_pair():%0A    '''test string formating to match API expectations'''%0A%0A    assert Bittrex.format_pair(%22btc_ppc%22) == %22btc-ppc%22%0A%0A%0Adef test_get_markets():%0A    '''test get_markets'''%0A%0A    assert isinstance(Bittrex.get_markets(), list)%0A    assert %22btc-ltc%22 in Bittrex.get_markets()%0A%0A%0Adef test_get_market_ticker():%0A    '''test get_market_ticker'''%0A%0A    ticker = Bittrex.get_market_ticker(%22btc-ltc%22)%0A%0A    assert isinstance(ticker, dict)%0A    assert list(ticker.keys()) == %5B'Bid', 'Ask', 'Last'%5D%0A%0A%0Adef test_get_market_orders():%0A    '''test get_market_orderbook'''%0A%0A    market_orders = Bittrex.get_market_orders(%22btc-ppc%22)%0A%0A    assert isinstance(market_orders, dict)%0A    assert isinstance(market_orders%5B%22buy%22%5D, list)%0A    assert isinstance(market_orders%5B%22sell%22%5D, list)%0A%0A%0Adef test_get_market_trade_history():%0A    '''test get_market_trade_history'''%0A%0A    trade_history = Bittrex.get_market_trade_history(%22btc-ppc%22, 10)%0A%0A    assert isinstance(trade_history, list)%0A    assert len(trade_history) == 10%0A    assert list(trade_history%5B0%5D.keys()) == %5B'Id', 'TimeStamp', 'Quantity',%0A                                             'Price', 'Total', 'FillType',%0A                                             'OrderType'%5D%0A%0A%0Adef test_get_market_depth():%0A    '''test get_market_depth'''%0A%0A    market_depth = Bittrex.get_market_depth(%22btc-ppc%22)%0A%0A    assert isinstance(market_depth, dict)%0A    assert isinstance(market_depth%5B%22asks%22%5D, Decimal)%0A%0A%0Adef test_get_market_spread():%0A    '''test get_market spread'''%0A%0A    assert isinstance(Bittrex.get_market_spread(%22btc-vtc%22), Decimal)%0A%0A

implement tests using py.test framework.