<s> from sure import this <EOL> from unittest import TestCase <EOL> from coinbase import CoinbaseAmount <EOL> from . import account_setup <EOL> from . http_mocking import * <EOL> @ with_http_mocking <EOL> class SellPriceTest1 ( TestCase ) : <EOL> def setUp ( self ) : <EOL> mock_http ( '<STR_LIT>' , <EOL> self . response_body ) <EOL> def test_sell_price_without_auth ( self ) : <EOL> self . go ( account_setup . without_auth ( ) ) <EOL> def test_sell_price_with_key ( self ) : <EOL> self . go ( account_setup . with_key ( ) ) <EOL> def test_sell_price_with_oauth ( self ) : <EOL> self . go ( account_setup . with_oauth ( ) ) <EOL> def go ( self , account ) : <EOL> this ( account . sell_price ( ) ) . should . equal ( self . expected_price ) <EOL> params = last_request_params ( ) <EOL> params . pop ( '<STR_LIT>' , None ) <EOL> this ( params ) . should . equal ( { '<STR_LIT>' : [ '<STR_LIT:1>' ] } ) <EOL> response_body = """<STR_LIT>""" <EOL> expected_price = CoinbaseAmount ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> @ with_http_mocking <EOL> class SellPriceTest2 ( TestCase ) : <EOL> def setUp ( self ) : <EOL> mock_http ( '<STR_LIT>' , <EOL> self . response_body ) <EOL> def test_sell_price_without_auth ( self ) : <EOL> self . go ( account_setup . with_key ( ) ) <EOL> def test_sell_price_with_key ( self ) : <EOL> self . go ( account_setup . with_key ( ) ) <EOL> def test_sell_price_with_oauth ( self ) : <EOL> self . go ( account_setup . with_oauth ( ) ) <EOL> def go ( self , account ) : <EOL> this ( account . sell_price ( <NUM_LIT:10> ) ) . should . equal ( self . expected_price ) <EOL> params = last_request_params ( ) <EOL> params . pop ( '<STR_LIT>' , None ) <EOL> this ( params ) . should . equal ( { '<STR_LIT>' : [ '<STR_LIT>' ] } ) <EOL> response_body = """<STR_LIT>""" <EOL> expected_price = CoinbaseAmount ( '<STR_LIT>' , '<STR_LIT>' ) </s>
