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