Lines Matching defs:User
13 class User(model.Model):
23 self.register_model('User', models.User)
28 m = models.User
29 success, user = m.create_user(auth_id='auth_id_1', password_raw='foo')
31 self.assertTrue(user is not None)
32 self.assertTrue(user.password is not None)
34 # user.key.id() is required to retrieve the auth token
35 user_id = user.key.id()
39 self.assertEqual(m.get_by_auth_id('auth_id_1'), user)
43 self.assertEqual(u, user)
48 self.assertEqual(u, user)
55 m = models.User
84 m = models.User
111 token_2 = m.get(user=auth_id, subject=subject, token=token)
119 token_2 = m.get(user=auth_id, subject=subject, token=token)
126 m = models.User
148 unique_username = 'User.username:%s' % username
154 user = User(username=username)
155 user.put()
156 return user
161 user = create_user('username_1')
164 user = create_user('username_2')
170 unique_username = 'User.username:%s' % username
171 unique_auth_id = 'User.auth_id:%s' % auth_id
172 unique_email = 'User.email:%s' % email
179 user = User(username=username, auth_id=auth_id, email=email)
180 user.put()
181 return user
193 user = create_user('username_1', 'auth_id_1', 'email_1')
198 user = create_user('username_2', 'auth_id_2', 'email_2')