Esempio n. 1
0
 def setUpTestData(cls):
     cls.new_user = UserFactory()
     cls.origin_activation_key = UserActivationKey.set_random_key_for_user(cls.new_user)
Esempio n. 2
0
 def set_activation_key(self):
     return UserActivationKey.set_random_key_for_user(user=self.instance)