def setUp(self): self.username = '******' self.old_password = '******' User = get_user_model() register_new_student(self.username, self.old_password) id = User.objects.get(email='*****@*****.**').pk self.returned = update_user(id) self.user = authenticate(self.username, self.old_password)
def setUp(self): self.username = '******' self.password = '******' User = get_user_model() register_new_student(self.username, self.password) change_user = User.objects.get(email=self.username) change_user.is_active = False change_user.save() self.user = authenticate(self.username, self.password)
def setUp(self): self.username = '******' self.password = '******' self.user = authenticate(self.username, self.password)