Ejemplo n.º 1
0
def test_invalidkey():
    with pytest.raises(Exception):
        keepa.Api('thisisnotavalidkey')
Ejemplo n.º 2
0
def test_deadkey():
    with pytest.raises(Exception):
        keepa.Api(DEADKEY)
Ejemplo n.º 3
0
def test_deadkey():
    with pytest.raises(Exception):
        # this key returns "payment required"
        deadkey = ('8ueigrvvnsp5too0atlb5f11veinerkud'
                   '47p686ekr7vgr9qtj1t1tle15fffkkm')
        keepa.Api(deadkey)