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