def test_metagroup_assignment_does_not_fail_if_groups_are_not_found_in_db(self):
     DBSession.delete(self.anonymous)
     DBSession.delete(self.authenticated)
     DBSession.flush()
     
     user = User.example()
     self.assert_user_groups([], user)
Example #2
0
    def test_metagroup_assignment_does_not_fail_if_groups_are_not_found_in_db(
            self):
        DBSession.delete(self.anonymous)
        DBSession.delete(self.authenticated)
        DBSession.flush()

        user = User.example()
        self.assert_user_groups([], user)
 def test_authenticated_users_belong_to_anonymous_and_authenticated_groups(self):
     user = User.example()
     self.assert_user_groups([self.anonymous, self.authenticated], user)
Example #4
0
 def test_authenticated_users_belong_to_anonymous_and_authenticated_groups(
         self):
     user = User.example()
     self.assert_user_groups([self.anonymous, self.authenticated], user)