Back to index

python3.2  3.2.2
Public Member Functions
test.test_os.PosixUidGidTests Class Reference

List of all members.

Public Member Functions

def test_setuid
def test_setgid
def test_seteuid
def test_setegid
def test_setreuid
def test_setreuid_neg1
def test_setregid
def test_setregid_neg1

Detailed Description

Definition at line 844 of file test_os.py.


Member Function Documentation

Definition at line 864 of file test_os.py.

00864 
00865             def test_setegid(self):
00866                 if os.getuid() != 0:
00867                     self.assertRaises(os.error, os.setegid, 0)
00868                 self.assertRaises(OverflowError, os.setegid, 1<<32)

Here is the call graph for this function:

Definition at line 858 of file test_os.py.

00858 
00859             def test_seteuid(self):
00860                 if os.getuid() != 0:
00861                     self.assertRaises(os.error, os.seteuid, 0)
00862                 self.assertRaises(OverflowError, os.seteuid, 1<<32)

Here is the call graph for this function:

Definition at line 852 of file test_os.py.

00852 
00853             def test_setgid(self):
00854                 if os.getuid() != 0:
00855                     self.assertRaises(os.error, os.setgid, 0)
00856                 self.assertRaises(OverflowError, os.setgid, 1<<32)

Here is the call graph for this function:

Definition at line 884 of file test_os.py.

00884 
00885             def test_setregid(self):
00886                 if os.getuid() != 0:
00887                     self.assertRaises(os.error, os.setregid, 0, 0)
00888                 self.assertRaises(OverflowError, os.setregid, 1<<32, 0)
00889                 self.assertRaises(OverflowError, os.setregid, 0, 1<<32)

Here is the call graph for this function:

Definition at line 890 of file test_os.py.

00890 
00891             def test_setregid_neg1(self):
00892                 # Needs to accept -1.  We run this in a subprocess to avoid
00893                 # altering the test runner's process state (issue8045).
00894                 subprocess.check_call([
00895                         sys.executable, '-c',
00896                         'import os,sys;os.setregid(-1,-1);sys.exit(0)'])
00897 
    class Pep383Tests(unittest.TestCase):

Here is the call graph for this function:

Definition at line 870 of file test_os.py.

00870 
00871             def test_setreuid(self):
00872                 if os.getuid() != 0:
00873                     self.assertRaises(os.error, os.setreuid, 0, 0)
00874                 self.assertRaises(OverflowError, os.setreuid, 1<<32, 0)
00875                 self.assertRaises(OverflowError, os.setreuid, 0, 1<<32)

Here is the call graph for this function:

Definition at line 876 of file test_os.py.

00876 
00877             def test_setreuid_neg1(self):
00878                 # Needs to accept -1.  We run this in a subprocess to avoid
00879                 # altering the test runner's process state (issue8045).
00880                 subprocess.check_call([
00881                         sys.executable, '-c',
00882                         'import os,sys;os.setreuid(-1,-1);sys.exit(0)'])

Here is the call graph for this function:

Definition at line 846 of file test_os.py.

00846 
00847             def test_setuid(self):
00848                 if os.getuid() != 0:
00849                     self.assertRaises(os.error, os.setuid, 0)
00850                 self.assertRaises(OverflowError, os.setuid, 1<<32)

Here is the call graph for this function:


The documentation for this class was generated from the following file: