Revision 749b8b8e snf-common/synnefo/lib/singleton/tests.py
b/snf-common/synnefo/lib/singleton/tests.py | ||
---|---|---|
37 | 37 |
# |
38 | 38 |
# |
39 | 39 |
|
40 |
"""Unit Tests for the Singleton classes in synnefo.common.singleton
|
|
40 |
"""Unit Tests for the Singleton classes in synnefo.lib.singleton
|
|
41 | 41 |
|
42 | 42 |
Provides unit tests for the code implementing Singleton |
43 |
classes in the synnefo.common.singleton module.
|
|
43 |
classes in the synnefo.lib.singleton module.
|
|
44 | 44 |
|
45 | 45 |
""" |
46 | 46 |
|
47 | 47 |
import unittest |
48 | 48 |
|
49 |
from synnefo.lib.singleton import ArgBasedSingleton |
|
49 |
from synnefo.lib.singleton import ArgBasedSingleton, ArgBasedSingletonMeta
|
|
50 | 50 |
|
51 | 51 |
|
52 | 52 |
class SubClassOne(ArgBasedSingleton): |
... | ... | |
102 | 102 |
|
103 | 103 |
class BaseClass(object): |
104 | 104 |
__metaclass__ = MyMeta |
105 |
|
|
105 | 106 |
def ret5(self): |
106 | 107 |
return 5 |
107 | 108 |
|
Also available in: Unified diff