File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1414 LONG_DESCRIPTION = readme_file .read ()
1515
1616NAME = "electionguard"
17- VERSION = "1.1.8 "
17+ VERSION = "1.1.9 "
1818LICENSE = "MIT"
1919DESCRIPTION = "ElectionGuard: Support for e2e verified elections."
2020LONG_DESCRIPTION_CONTENT_TYPE = "text/markdown"
Original file line number Diff line number Diff line change 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 ()
14+ self .assertIsNotNone (instance )
You can’t perform that action at this time.
0 commit comments