def setUpTestData(cls): cls.new_user = UserFactory() cls.origin_activation_key = UserActivationKey.set_random_key_for_user(cls.new_user)
def set_activation_key(self): return UserActivationKey.set_random_key_for_user(user=self.instance)