Esempio n. 1
0
def test_ping_no_auth():
    fm_obj = FreshMail('any_key', 'any_secret')
    try:
        fm_obj.ping()
        assert False
    except FreshMailException:
        pass
Esempio n. 2
0
def test_bad_method():
    fm_obj = FreshMail('any_key', 'any_secret')
    try:
        fm_obj.ping(method='PUT')
        assert False
    except FreshMailException:
        pass
Esempio n. 3
0
def test_bad_method():
    fm_obj = FreshMail('any_key', 'any_secret')
    try:
        fm_obj.ping(method='PUT')
        assert False
    except FreshMailException:
        pass
Esempio n. 4
0
def test_ping_no_auth():
    fm_obj = FreshMail('any_key', 'any_secret')
    try:
        res = fm_obj.ping()
        assert False
    except FreshMailException:
        pass