# Path: tsukiji/orderbook.py
# def create_ask(price, quantity, timeout):
# def create_bid(price, quantity, timeout):
# def create_trade(recipient, quantity, trade_id):
# def create_confirm(recipient, trade_id):
# def create_cancel(recipient, trade_id):
# def create_greeting():
# def create_greeting_response(peers):
# def create_msg(options=None):
# def trade_offer(their_offer, own_offer):
# def get_offer(id, message_id):
# def remove_offer(id, message_id):
# def clean_offers(f):
#     def func_wrapper(*args, **kwargs):
# def get_asks():
# def get_own_asks():
# def get_bids():
# def get_own_bids():
# def match_bid(bid):
# def match_incoming_bid(bid):
# def match_ask(ask):
# def match_incoming_ask(ask):
# def lowest_offer(offers):
# def highest_offer(offers):
# 
# Path: tsukiji/crypto.py
# def get_public_bytestring():
#     key = retrieve_key()
#     return key.publickey().exportKey()


from nose.tools import assert_equal, assert_is, assert_is_none, assert_is_not_none
from tsukiji import orderbook as ob
from tsukiji.crypto import get_public_bytestring
import unittest
import datetime
        import datetime



now = datetime.datetime.now()
next_year = now.replace(year=now.year + 1)
last_year = now.replace(year=now.year - 1)


class OrderBookTest(unittest.TestCase):

    def setUp(self):
        '''Clean the orderbook before every test.'''
        ob.message_id = 0
        ob.offers = []
        ob.trades = []

# Path: tsukiji/orderbook.py
# def create_ask(price, quantity, timeout):
# def create_bid(price, quantity, timeout):
# def create_trade(recipient, quantity, trade_id):
# def create_confirm(recipient, trade_id):
# def create_cancel(recipient, trade_id):
# def create_greeting():
# def create_greeting_response(peers):
# def create_msg(options=None):
# def trade_offer(their_offer, own_offer):
# def get_offer(id, message_id):
# def remove_offer(id, message_id):
# def clean_offers(f):
#     def func_wrapper(*args, **kwargs):
# def get_asks():
# def get_own_asks():
# def get_bids():
# def get_own_bids():
# def match_bid(bid):
# def match_incoming_bid(bid):
# def match_ask(ask):
# def match_incoming_ask(ask):
# def lowest_offer(offers):
# def highest_offer(offers):
# 
# Path: tsukiji/crypto.py
# def get_public_bytestring():
#     key = retrieve_key()
#     return key.publickey().exportKey()


# Path: tests/test_orderbook.py
from nose.tools import assert_equal, assert_is, assert_is_none, assert_is_not_none
from tsukiji import orderbook as ob
from tsukiji.crypto import get_public_bytestring
import unittest
import datetime
        import datetime




now = datetime.datetime.now()
next_year = now.replace(year=now.year + 1)
last_year = now.replace(year=now.year - 1)


class OrderBookTest(unittest.TestCase):

    def setUp(self):
        '''Clean the orderbook before every test.'''
        ob.message_id = 0
        ob.offers = []
        ob.trades = []

        self.public_id = get_public_bytestring()