'Using yaml serializer without pyyaml raises ImportError'

def test_serializer_pyyaml_error_message(self):

    jane = Author(name='Jane')
    with self.assertRaises(ImportError):
        serializers.serialize('yaml', [jane])
