MCPcopy Create free account
hub / github.com/McCloudS/subgen / TestBoolAndEquality

Class TestBoolAndEquality

tests/test_language_code.py:86–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86class TestBoolAndEquality:
87 def test_valid_language_is_truthy(self):
88 assert bool(LanguageCode.ENGLISH) is True
89
90 def test_none_language_is_falsy(self):
91 assert bool(LanguageCode.NONE) is False
92
93 def test_none_equals_python_none(self):
94 assert LanguageCode.NONE == LanguageCode.NONE
95
96 def test_valid_language_not_equal_to_none(self):
97 assert LanguageCode.ENGLISH != LanguageCode.NONE
98
99
100class TestIsValidLanguage:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected