Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.41
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
local /
lib /
python3.10 /
unittest /
test /
testmock /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
__init__.py
465
B
-rw-r--r--
2025-06-04 09:23
__main__.py
623
B
-rw-r--r--
2025-06-04 09:23
support.py
268
B
-rw-r--r--
2025-06-04 09:23
testasync.py
37.14
KB
-rw-r--r--
2025-06-04 09:23
testcallable.py
4.17
KB
-rw-r--r--
2025-06-04 09:23
testhelpers.py
32.86
KB
-rw-r--r--
2025-06-04 09:23
testmagicmethods.py
15.86
KB
-rw-r--r--
2025-06-04 09:23
testmock.py
74.41
KB
-rw-r--r--
2025-06-04 09:23
testpatch.py
57.75
KB
-rw-r--r--
2025-06-04 09:23
testsealable.py
7.2
KB
-rw-r--r--
2025-06-04 09:23
testsentinel.py
1.29
KB
-rw-r--r--
2025-06-04 09:23
testwith.py
11.97
KB
-rw-r--r--
2025-06-04 09:23
Save
Rename
import unittest import copy import pickle from unittest.mock import sentinel, DEFAULT class SentinelTest(unittest.TestCase): def testSentinels(self): self.assertEqual(sentinel.whatever, sentinel.whatever, 'sentinel not stored') self.assertNotEqual(sentinel.whatever, sentinel.whateverelse, 'sentinel should be unique') def testSentinelName(self): self.assertEqual(str(sentinel.whatever), 'sentinel.whatever', 'sentinel name incorrect') def testDEFAULT(self): self.assertIs(DEFAULT, sentinel.DEFAULT) def testBases(self): # If this doesn't raise an AttributeError then help(mock) is broken self.assertRaises(AttributeError, lambda: sentinel.__bases__) def testPickle(self): for proto in range(pickle.HIGHEST_PROTOCOL+1): with self.subTest(protocol=proto): pickled = pickle.dumps(sentinel.whatever, proto) unpickled = pickle.loads(pickled) self.assertIs(unpickled, sentinel.whatever) def testCopy(self): self.assertIs(copy.copy(sentinel.whatever), sentinel.whatever) self.assertIs(copy.deepcopy(sentinel.whatever), sentinel.whatever) if __name__ == '__main__': unittest.main()