Skip to content
Snippets Groups Projects
Commit 2cfc9e54 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

more coverage tests

parent 02891473
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ class TestOptionals(unittest.TestCase): ...@@ -8,6 +8,7 @@ class TestOptionals(unittest.TestCase):
def test_extract_optional(self): def test_extract_optional(self):
b = Optional(None) b = Optional(None)
self.assertIs(extract_optional(b.test.value), None) self.assertIs(extract_optional(b.test.value), None)
self.assertEqual(extract_optional(5), 5)
def test_optional(self): def test_optional(self):
b = Optional(None) b = Optional(None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment