projects
/
python_utils.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix chromecasts to work with new version of pychromecast; rename
[python_utils.git]
/
tests
/
decorator_utils_test.py
1
#!/usr/bin/env python3
2
3
import unittest
4
5
import decorator_utils as du
6
7
import unittest_utils as uu
8
9
10
class TestDecorators(unittest.TestCase):
11
12
def test_singleton(self):
13
14
@du.singleton
15
class FooBar():
16
pass
17
18
x = FooBar()
19
y = FooBar()
20
self.assertTrue(x is y)
21
22
23
if __name__ == '__main__':
24
unittest.main()