'Using yaml serializer without pyyaml raises ImportError'

def test_serializer_pyyaml_error_message(self):

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