'Test the crawler for fetching multiple blocks in one crawl.'

def test_crawl_batch(self):

    (node, other, crawler) = self.create_nodes(3)
    target_other = self._create_target(node, other)
    TestTrustChainCommunity.create_block(node, other, target_other, {'id': 42})
    TestTrustChainCommunity.create_block(node, other, target_other, {'id': 42})
    TestTrustChainCommunity.crawl_node(crawler, node, self._create_target(crawler, node))
    self.assertBlocksInDatabase(node, 4)
    self.assertBlocksInDatabase(other, 4)
    self.assertBlocksInDatabase(crawler, 4)
    self.assertBlocksAreEqual(node, other)
    self.assertBlocksAreEqual(node, crawler)
    self.assertBlocksAreEqual(other, crawler)
