'Tests serialization of a BlockRecord using the _asdict() method.'

@ddt.data((0, 0, '0123456789abcdef', True), (1, 10, 'totally_a_real_block_key', False), ('BlockRecord    is', 'a    dumb    data    store', 'with    no    validation', None))
@ddt.unpack
def test_serialization(self, weight, raw_possible, block_key, graded):

    record = BlockRecord(block_key, weight, raw_possible, graded)
    expected = OrderedDict([('locator', block_key), ('weight', weight), ('raw_possible', raw_possible), ('graded', graded)])
    self.assertEqual(expected, record._asdict())
