def test_can_use_object_without_moderated_object(self):

        profile = UserProfile.objects.get(user__username='moderator')
        # Pretend that it was created before django-moderation was installed,
        # by deleting the ModeratedObject.
        ModeratedObject.objects.filter(object_pk=profile.pk).delete()

        # We should be able to load it
        profile = UserProfile.objects.get(user__username='moderator')
        # And save changes to it
        profile.description = "New description"
        profile.save()
        # And now it should be invisible, because it's pending
        self.assertEqual(
            [], list(UserProfile.objects.all()),
            "The previously unmoderated object should now be invisible, "
            "because it has never been accepted.")
implements removal of deleted flag messages
dataset/ETHPy150Open dominno/django-moderation/tests/tests/unit/testregister.py/RegistrationTestCase.test_can_use_object_without_moderated_object--crossover with--dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/contrib/mockimaplib.py/Connection.expunge