Example #1
0
 def test_nothing(self):
     value = Maybe(EMPTY)
     assert not value.is_something()
Example #2
0
 def test_none(self):
     value = Maybe(None)
     assert value.is_something()
Example #3
0
 def test_something(self):
     value = Maybe('1')
     assert value.is_something()