<s> from unittest import TestCase <EOL> from mock import Mock , patch <EOL> from alf . adapters import mount_retry_adapter <EOL> class MountRetryAdapterTestCase ( TestCase ) : <EOL> @ patch ( '<STR_LIT>' ) <EOL> def test_mounts_HTTP_adapter_with_retry ( self , HTTPAdapter ) : <EOL> number_or_retry_object = Mock ( ) <EOL> adapter = Mock ( ) <EOL> HTTPAdapter . return_value = adapter <EOL> session = Mock ( ) <EOL> mount_retry_adapter ( session , retries = number_or_retry_object ) <EOL> HTTPAdapter . assert_called_once_with ( max_retries = number_or_retry_object ) <EOL> session . mount . assert_any_call ( '<STR_LIT>' , adapter ) <EOL> session . mount . assert_any_call ( '<STR_LIT>' , adapter ) </s>
