OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
mock
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/12/2020 04:36:16 PM
rwxr-xr-x
📄
__init__.py
146 bytes
07/14/2015 02:07:05 AM
rw-r--r--
📄
__main__.py
623 bytes
07/09/2015 07:45:29 AM
rw-r--r--
📁
__pycache__
-
07/12/2020 04:36:16 PM
rwxr-xr-x
📄
support.py
552 bytes
07/31/2015 06:28:54 AM
rw-r--r--
📄
testcallable.py
4.33 KB
07/14/2015 02:07:05 AM
rw-r--r--
📄
testhelpers.py
28.03 KB
10/06/2016 07:34:00 AM
rw-r--r--
📄
testmagicmethods.py
16 KB
07/31/2015 06:28:54 AM
rw-r--r--
📄
testmock.py
49.29 KB
03/23/2016 05:59:31 AM
rw-r--r--
📄
testpatch.py
55.03 KB
03/23/2016 05:54:59 AM
rw-r--r--
📄
testsentinel.py
976 bytes
07/14/2015 02:07:05 AM
rw-r--r--
📄
testwith.py
10.34 KB
03/23/2016 05:31:30 AM
rw-r--r--
Editing: testsentinel.py
Close
# Copyright (C) 2007-2012 Michael Foord & the mock team # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ import unittest2 as unittest from 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__) if __name__ == '__main__': unittest.main()