<s> import corehq . apps . ivr . tests . util as util <EOL> from corehq . messaging . ivrbackends . kookoo . models import SQLKooKooBackend <EOL> from django . test import Client <EOL> class KooKooLogCallTestCase ( util . LogCallTestCase ) : <EOL> @ property <EOL> def phone_number ( self ) : <EOL> return '<STR_LIT>' <EOL> def setUp ( self ) : <EOL> super ( KooKooLogCallTestCase , self ) . setUp ( ) <EOL> self . backend = SQLKooKooBackend ( <EOL> backend_type = SQLKooKooBackend . IVR , <EOL> name = '<STR_LIT>' , <EOL> is_global = True , <EOL> hq_api_id = SQLKooKooBackend . get_api_id ( ) <EOL> ) <EOL> self . backend . save ( ) <EOL> def tearDown ( self ) : <EOL> super ( KooKooLogCallTestCase , self ) . tearDown ( ) <EOL> self . backend . delete ( ) <EOL> def simulate_inbound_call ( self , phone_number ) : <EOL> phone_number = '<STR_LIT>' % phone_number [ <NUM_LIT:2> : ] <EOL> return Client ( ) . get ( '<STR_LIT>' % phone_number ) <EOL> def check_response ( self , response ) : <EOL> self . assertEqual ( response . status_code , <NUM_LIT:200> ) <EOL> self . assertEqual ( response . content , '<STR_LIT>' ) </s>
