Beispiel #1
0
  def setUp(self):
    super(MemberListHandlerTest, self).setUp()

    # This handler requires admin access all the time, so give ourselves that
    # right off the bat.
    self.testbed.setup_env(user_email="*****@*****.**", user_is_admin="1",
                           overwrite=True)

    # Make exactly two pages worth of users.
    for i in range(0, 50):
       email = "*****@*****.**" % (i)
       first_name = "Testy%d" % (i)
       user = Membership.create_user(email, "notasecret",
                                     first_name=first_name,
                                     last_name="Testerson",
                                     status="active")
Beispiel #2
0
    def setUp(self):
        super(MemberListHandlerTest, self).setUp()

        # This handler requires admin access all the time, so give ourselves that
        # right off the bat.
        self.testbed.setup_env(user_email="*****@*****.**",
                               user_is_admin="1",
                               overwrite=True)

        # Make exactly two pages worth of users.
        for i in range(0, 50):
            email = "*****@*****.**" % (i)
            first_name = "Testy%d" % (i)
            user = Membership.create_user(email,
                                          "notasecret",
                                          first_name=first_name,
                                          last_name="Testerson",
                                          status="active")