def test_attributes_fails(): with pytest.raises(TypeError): DecryptorConfig(source='', key_provider=MagicMock(__class__=MasterKeyProvider), max_body_length='not an int')
def test_attributes_defaults(): test = DecryptorConfig(source='', key_provider=MagicMock(__class__=MasterKeyProvider)) assert test.max_body_length is None
def test_decryptor_config_defautls(): test = DecryptorConfig(**BASE_KWARGS) assert test.max_body_length is None