def test_ask_fails_no_currency(cls): ''' method for testing no ask 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_ask(None) ex = cme.exception ok_(ex.message == msg, "error %s should be %s " % (ex.message, msg))
def test_ask(cls): ''' Method for testing ask price ''' with assert_raises(ValueError) as cme: mock.get_current_ask(base.CCY_DEFAULT) ex = cme.exception ok_(ex.message == "Not implemented yet")