We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 779ad74 commit a272c24Copy full SHA for a272c24
2 files changed
setup.py
@@ -14,7 +14,7 @@
14
LONG_DESCRIPTION = readme_file.read()
15
16
NAME = "electionguard"
17
-VERSION = "1.1.8"
+VERSION = "1.1.9"
18
LICENSE = "MIT"
19
DESCRIPTION = "ElectionGuard: Support for e2e verified elections."
20
LONG_DESCRIPTION_CONTENT_TYPE = "text/markdown"
tests/test_singleton.py
@@ -0,0 +1,14 @@
1
+from unittest import TestCase
2
+from electionguard.singleton import Singleton
3
+
4
5
+class TestSingleton(TestCase):
6
+ def test_singleton(self):
7
+ singleton = Singleton()
8
+ same_instance = singleton.get_instance()
9
+ self.assertIsNotNone(singleton)
10
+ self.assertIsNotNone(same_instance)
11
12
+ def test_singleton_when_not_initialized(self):
13
+ instance = Singleton.get_instance()
+ self.assertIsNotNone(instance)
0 commit comments