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