'This method creates a fake AllChannel community so we can check whether a request is made in the community
when doing stuff with a channel.'

@blocking_call_on_reactor_thread
def create_fake_allchannel_community(self):

    self.session.lm.dispersy._database.open()
    fake_member = DummyMember(self.session.lm.dispersy, 1, ('a' * 20))
    member = self.session.lm.dispersy.get_new_member(u'curve25519')
    fake_community = AllChannelCommunity(self.session.lm.dispersy, fake_member, member)
    self.session.lm.dispersy._communities = {'allchannel': fake_community}
    return fake_community
