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

Method test_invalid_code

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

Source from the content-addressed store, hash-verified

28 assert LanguageCode.from_string("") == LanguageCode.NONE
29
30 def test_invalid_code(self):
31 assert LanguageCode.from_string("zz") == LanguageCode.NONE
32
33 def test_case_insensitive_iso(self):
34 assert LanguageCode.from_string("EN") == LanguageCode.ENGLISH

Callers

nothing calls this directly

Calls 1

from_stringMethod · 0.80

Tested by

no test coverage detected