'Test the unpacking of a header we don\'t have a class for'

def test_unpack_weird_header(self):

    class nxm_weird(nx._nxm_maskable, nx._nxm_numeric_entry, ):
        _nxm_type = nx._make_type(57005, 66)
        _nxm_length = 4
    original = nx.nx_reg_load(dst=nxm_weird, value=42, nbits=32)
    original_packed = original.pack()
    unoriginal = nx.nx_reg_load()
    offset = unoriginal.unpack(original_packed, 0)
    self.assertEqual(offset, len(original_packed), "Didn't    unpack    entire    entry")
    unoriginal_packed = unoriginal.pack()
    self.assertEqual(unoriginal.dst.__name__, 'NXM_UNKNOWN_dead_42', "Didn't    generate    new    class    correctly?")
    self.assertEqual(original_packed, unoriginal_packed, 'Pack/Unpack    failed')
