def generate_host_keys(hostname):
    labels = hostname.split('.')
    for i in range(2, len(labels) + 1):
        domain = '.'.join(labels[-i:])
        yield domain
        yield '.' + domain
Connect using FakeTwitterProtocol and callback our deferred.
dataset/ETHPy150Open n8henrie/pycookiecheat/pycookiecheat/pycookiecheat.py/generate_host_keys--crossover with--dataset/ETHPy150Open dustin/twitty-twister/twittytwister/test/test_twitter.py/FakeTwitterAPI.connected