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_abstract_serializable_type():
with pytest.raises(NotImplementedError):
# noinspection PyTypeChecker
SerializableType._serialize(None)
with pytest.raises(NotImplementedError):
SerializableType._deserialize(None)