MCPcopy Index your code
hub / github.com/McCloudS/subgen / test_empty_string

Method test_empty_string

tests/test_language_code.py:27–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25 assert LanguageCode.from_string(None) == LanguageCode.NONE
26
27 def test_empty_string(self):
28 assert LanguageCode.from_string("") == LanguageCode.NONE
29
30 def test_invalid_code(self):
31 assert LanguageCode.from_string("zz") == LanguageCode.NONE

Callers

nothing calls this directly

Calls 1

from_stringMethod · 0.80

Tested by

no test coverage detected