MCPcopy Index your code
hub / github.com/python/cpython / test_empty_string

Method test_empty_string

Lib/test/test_enum.py:4570–4572  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4568class TestEmptyAndNonLatinStrings(unittest.TestCase):
4569
4570 def test_empty_string(self):
4571 with self.assertRaises(ValueError):
4572 empty_abc = Enum('empty_abc', ('', 'B', 'C'))
4573
4574 def test_non_latin_character_string(self):
4575 greek_abc = Enum('greek_abc', ('\u03B1', 'B', 'C'))

Callers

nothing calls this directly

Calls 2

EnumClass · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected