'Test whether a block is correctly represented when converted to a dictionary'

@blocking_call_on_reactor_thread
def test_block_to_dictionary(self):

    block_dict = dict(self.block1)
    self.assertDictEqual(block_dict['transaction'], {'id': 42})
    self.assertEqual(block_dict['insert_time'], self.block1.insert_time)
