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

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

    self.dispersy.get_communities = (lambda : [])
    return self.do_request('trustchain/blocks/aaaaa', expected_code=404)
