def test_creation_of_moderated_object(self):
        profile = UserProfile(description='Profile for new user',
                              url='http://www.yahoo.com',
                              user=User.objects.get(username='user1'))

        profile.save()

        moderated_object = ModeratedObject.objects.get_for_instance(profile)

        self.assertEqual(str(moderated_object),
                         "user1 - http://www.yahoo.com")
Create a Series with both index and values equal to the index keys
dataset/ETHPy150Open dominno/django-moderation/tests/tests/unit/testregister.py/RegistrationTestCase.test_creation_of_moderated_object--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/tseries/index.py/DatetimeIndex.to_series