File: test_nothing_singleton.py

package info (click to toggle)
python-returns 0.26.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,652 kB
  • sloc: python: 11,000; makefile: 18
file content (6 lines) | stat: -rw-r--r-- 165 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
from returns.maybe import _Nothing  # noqa: PLC2701


def test_nothing_singleton():
    """Ensures `_Nothing` is a singleton."""
    assert _Nothing() is _Nothing()