'Testing whether the API returns error 404 if no trustchain community is loaded'

@deferred(timeout=10)
def test_get_statistics_no_community(self):

    dummy_master_member = DummyMember(self.dispersy, 1, ('b' * 20))
    Community.__abstractmethods__ = frozenset()
    self.dispersy.get_communities = (lambda : [Community(self.dispersy, dummy_master_member, self.member), Community(self.dispersy, dummy_master_member, self.member)])
    return self.do_request('trustchain/statistics', expected_code=404)
