Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_from_msgpack():
@dataclass
class DataClass(DataClassMessagePackMixin):
x: List[int]
dumped = msgpack.packb({'x': [1, 2, 3]})
assert DataClass.from_msgpack(dumped) == DataClass([1, 2, 3])