示例#1
0
def test_list_like_behaviour():
    with api.phisheye('google') as data:
        data.insert(0, {'domain': 'woot', 'tld': 'com'})
        assert data['term'] == 'google'
        for result in data:
            assert result['domain']
            assert result['tld']
示例#2
0
def test_phisheye():
    with api.phisheye('google') as data:
        assert data['term'] == 'google'
        for result in data:
            assert result['domain']
            assert result['tld']