<s> import unittest <EOL> from mock import Mock , patch <EOL> from twilio . rest . resources import ConnectApps <EOL> class ConnectAppTest ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . parent = Mock ( ) <EOL> self . uri = "<STR_LIT>" <EOL> self . auth = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . resource = ConnectApps ( self . uri , self . auth ) <EOL> @ patch ( "<STR_LIT>" ) <EOL> def test_get ( self , mock ) : <EOL> mock . return_value = Mock ( ) <EOL> mock . return_value . content = '<STR_LIT>' <EOL> self . resource . get ( "<STR_LIT>" ) <EOL> mock . assert_called_with ( "<STR_LIT:GET>" , "<STR_LIT>" , <EOL> auth = self . auth , use_json_extension = True ) <EOL> @ patch ( "<STR_LIT>" ) <EOL> def test_list_with_paging ( self , mock ) : <EOL> mock . return_value = Mock ( ) <EOL> mock . return_value . content = '<STR_LIT>' <EOL> self . resource . list ( page = <NUM_LIT:1> , page_size = <NUM_LIT:50> ) <EOL> mock . assert_called_with ( "<STR_LIT:GET>" , "<STR_LIT>" , <EOL> params = { "<STR_LIT>" : <NUM_LIT:1> , "<STR_LIT>" : <NUM_LIT:50> } , <EOL> auth = self . auth , <EOL> use_json_extension = True ) <EOL> @ patch ( "<STR_LIT>" ) <EOL> def test_list ( self , mock ) : <EOL> mock . return_value = Mock ( ) <EOL> mock . return_value . content = '<STR_LIT>' <EOL> self . resource . list ( ) <EOL> mock . assert_called_with ( "<STR_LIT:GET>" , "<STR_LIT>" , <EOL> params = { } , auth = self . auth , <EOL> use_json_extension = True ) <EOL> def test_create ( self ) : <EOL> self . assertRaises ( AttributeError , getattr , self . resource , '<STR_LIT>' ) <EOL> def test_delete ( self ) : <EOL> self . assertRaises ( AttributeError , getattr , self . resource , '<STR_LIT>' ) <EOL> def test_update ( self ) : <EOL> self . assertRaises ( AttributeError , getattr , self . resource , '<STR_LIT>' ) </s>
