Пример #1
0
 def test_bid_fails_no_currency(cls):
     ''' method for testing no bid price '''
     msg = "URL https://api.mock.com/XBT%s/ticker should have a currency value supplied"
     with assert_raises(ValueError) as cme:
         mock.get_current_bid(None)
     ex = cme.exception
     ok_(ex.message == msg, "error %s should be %s " % (ex.message, msg))
Пример #2
0
 def test_orders(cls):
     ''' Method for testing orders '''
     with assert_raises(ValueError) as cme:
         mock.get_current_orders(base.CCY_DEFAULT)
     ex = cme.exception
     ok_(ex.message == "Not implemented yet")