def test_deserializer_pyyaml_error_message(self):
        with self.assertRaises(ImportError):
            serializers.deserialize("yaml", "")
Using yaml deserializer without pyyaml raises ImportError
dataset/ETHPy150Open django/django/tests/serializers/test_yaml.py/NoYamlSerializerTestCase.test_deserializer_pyyaml_error_message