def METHOD_NAME(self):
    test_user = get_user_model().objects.first()
    """
    If the input object is a ResourceBase, in favorite content type, should be saved he
    subtype content type (Doc, Dataset, Map or GeoApp)
    """
    create_single_dataset("foo_dataset")
    resource = ResourceBase.objects.get(title="foo_dataset")
    created_fav = Favorite.objects.create_favorite(resource, test_user)
    self.assertEqual("dataset", created_fav.content_type.model)
    """
    If the input object is a subtype, should save the relative content type
    """
    test_document_1 = Document.objects.first()
    self.assertIsNotNone(test_document_1)
    Favorite.objects.create_favorite(test_document_1, test_user)
    fav = Favorite.objects.last()
    ct = ContentType.objects.get_for_model(test_document_1)
    self.assertEqual(fav.content_type, ct)