�n�U� � @ sU d d l Z d d l m Z m Z Gd d � d e j � Z e d k rQ e j � d S)� N)�sentinel�DEFAULTc @ s@ e Z d Z d d � Z d d � Z d d � Z d d � Z d S) �SentinelTestc C s6 | j t j t j d � | j t j t j d � d S)Nzsentinel not storedzsentinel should be unique)�assertEqualr �whateverZassertNotEqualZwhateverelse)�self� r �/testsentinel.py� testSentinels s zSentinelTest.testSentinelsc C s | j t t j � d d � d S)Nzsentinel.whateverzsentinel name incorrect)r �strr r )r r r r �testSentinelName s zSentinelTest.testSentinelNamec C s | j t t j � d S)N)ZassertIsr r )r r r r �testDEFAULT s zSentinelTest.testDEFAULTc C s | j t d d � � d S)Nc S s t j S)N)r � __bases__r r r r �<lambda> s z(SentinelTest.testBases.<locals>.<lambda>)ZassertRaises�AttributeError)r r r r � testBases s zSentinelTest.testBasesN)�__name__� __module__�__qualname__r r r r r r r r r s r �__main__) Z unittest2ZunittestZmockr r ZTestCaser r �mainr r r r �<module> s
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__init__.cpython-35.opt-1.pyc | File | 95 B | 0644 |
|
__init__.cpython-35.pyc | File | 95 B | 0644 |
|
__main__.cpython-35.opt-1.pyc | File | 569 B | 0644 |
|
__main__.cpython-35.pyc | File | 569 B | 0644 |
|
support.cpython-35.opt-1.pyc | File | 1.17 KB | 0644 |
|
support.cpython-35.pyc | File | 1.17 KB | 0644 |
|
testcallable.cpython-35.opt-1.pyc | File | 5.98 KB | 0644 |
|
testcallable.cpython-35.pyc | File | 5.98 KB | 0644 |
|
testhelpers.cpython-35.opt-1.pyc | File | 36.11 KB | 0644 |
|
testhelpers.cpython-35.pyc | File | 36.11 KB | 0644 |
|
testmagicmethods.cpython-35.opt-1.pyc | File | 22.61 KB | 0644 |
|
testmagicmethods.cpython-35.pyc | File | 22.61 KB | 0644 |
|
testmock.cpython-35.opt-1.pyc | File | 49.25 KB | 0644 |
|
testmock.cpython-35.pyc | File | 49.25 KB | 0644 |
|
testpatch.cpython-35.opt-1.pyc | File | 71.85 KB | 0644 |
|
testpatch.cpython-35.pyc | File | 71.85 KB | 0644 |
|
testsentinel.cpython-35.opt-1.pyc | File | 1.38 KB | 0644 |
|
testsentinel.cpython-35.pyc | File | 1.38 KB | 0644 |
|
testwith.cpython-35.opt-1.pyc | File | 10.14 KB | 0644 |
|
testwith.cpython-35.pyc | File | 10.14 KB | 0644 |
|