'Function to assertEqual two blocks'

def assertEqual_block(self, expected_block, actual_block):

    crypto = ECCrypto()
    self.assertTrue((expected_block is not None))
    self.assertTrue((actual_block is not None))
    self.assertTrue(crypto.is_valid_public_bin(expected_block.public_key))
    self.assertTrue(crypto.is_valid_public_bin(actual_block.public_key))
    self.assertDictEqual(expected_block.transaction, actual_block.transaction)
    self.assertEqual(expected_block.public_key, actual_block.public_key)
    self.assertEqual(expected_block.sequence_number, actual_block.sequence_number)
    self.assertEqual(expected_block.link_public_key, actual_block.link_public_key)
    self.assertEqual(expected_block.link_sequence_number, actual_block.link_sequence_number)
    self.assertEqual(expected_block.previous_hash, actual_block.previous_hash)
    self.assertEqual(expected_block.signature, actual_block.signature)
