Exemplo n.º 1
0
	def setUp (self) :
		self.myLogin = '******'
		self.friendLogin = '******'

		self.me = User.create(login=self.myLogin, firstNames='testNames', lastNames='testLastNames')
		self.me.save()
		self.myToken = Tokenizer.assignToken(self.me)

		self.friend = User.create(login=self.friendLogin, firstNames='friendName', lastNames='friendLast')
		self.friend.save()
Exemplo n.º 2
0
    def setUp(self):
        self.myLogin = '******'
        self.friendLogin = '******'

        self.me = User.create(login=self.myLogin,
                              firstNames='testNames',
                              lastNames='testLastNames')
        self.me.save()
        self.myToken = Tokenizer.assignToken(self.me)

        self.friend = User.create(login=self.friendLogin,
                                  firstNames='friendName',
                                  lastNames='friendLast')
        self.friend.save()
Exemplo n.º 3
0
    def create_user_and_token(self, login, first_names, last_names):
        user = self.create_user(login, first_names, last_names)
        token = Tokenizer.assignToken(user)

        return (user, token)
Exemplo n.º 4
0
	def create_user_and_token(self, login, first_names, last_names):
		user = self.create_user(login,first_names, last_names)
		token = Tokenizer.assignToken(user)

		return (user,token)