예제 #1
0
 def test_user_find(self):
     user = UserProfile.objects.create(email='*****@*****.**')
     # Checks that you can have multiple copies of the same email and
     # that we only get distinct results back.
     user.update(email='*****@*****.**')
     user.update(email='*****@*****.**')
     user.update(email='*****@*****.**')
     eq_([user], list(find_users('*****@*****.**')))
     eq_([user], list(find_users('*****@*****.**')))
예제 #2
0
 def test_user_find(self):
     user = UserProfile.objects.create(email='*****@*****.**')
     # Checks that you can have multiple copies of the same email and
     # that we only get distinct results back.
     user.update(email='*****@*****.**')
     user.update(email='*****@*****.**')
     user.update(email='*****@*****.**')
     eq_([user], list(find_users('*****@*****.**')))
     eq_([user], list(find_users('*****@*****.**')))
예제 #3
0
 def test_user_find_multiple(self):
     user_1 = UserProfile.objects.create(username='******',
                                         email='*****@*****.**')
     user_1.update(email='*****@*****.**')
     user_2 = UserProfile.objects.create(username='******',
                                         email='*****@*****.**')
     eq_([user_1, user_2], list(find_users('*****@*****.**')))
예제 #4
0
 def test_user_find_multiple(self):
     user_1 = UserProfile.objects.create(username='******',
                                         email='*****@*****.**')
     user_1.update(email='*****@*****.**')
     user_2 = UserProfile.objects.create(username='******',
                                         email='*****@*****.**')
     eq_([user_1, user_2], list(find_users('*****@*****.**')))
예제 #5
0
 def test_user_find_multiple(self):
     user_1 = UserProfile.objects.create(username="******", email="*****@*****.**")
     user_1.update(email="*****@*****.**")
     user_2 = UserProfile.objects.create(username="******", email="*****@*****.**")
     eq_([user_1, user_2], list(find_users("*****@*****.**")))