def test_something(self): value = Maybe(1) assert value.otherwise() == 1
def test_none(self): value = Maybe(None) assert value.otherwise(1) is None
def test_nothing(self): value = Maybe(EMPTY) assert value.otherwise() is None
def test_something(self): value = Maybe(1) assert value.otherwise() == 1
def test_none(self): value = Maybe(None) assert value.otherwise(1) is None
def test_nothing(self): value = Maybe(EMPTY) assert value.otherwise() is None