def test_orders(cls): ''' Method for testing orders ''' orders = bfx.get_current_orders(base.CCY_DEFAULT) ok_(len(orders["asks"]) > 0, "Asks array should not be empty") ok_(len(orders["bids"]) > 0, "Bids array should not be empty") ok_(orders["source"] == "Bitfinex", "Source should be 'Bitfinex'") ok_(float(orders["timestamp"]) > 0, "Timestamp should be > zero")