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']
def test_phisheye(): with api.phisheye('google') as data: assert data['term'] == 'google' for result in data: assert result['domain'] assert result['tld']