MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_category

Method test_category

Lib/test/test_unicodedata.py:172–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

170 self.assertRaises(ValueError, self.db.decimal, 'x')
171
172 def test_category(self):
173 self.assertEqual(self.db.category('\uFFFE'), 'Cn')
174 self.assertEqual(self.db.category('a'), 'Ll')
175 self.assertEqual(self.db.category('A'), 'Lu')
176 self.assertEqual(self.db.category('\U00020000'), 'Lo')
177 self.assertEqual(self.db.category('\U0001012A'), 'No')
178
179 self.assertRaises(TypeError, self.db.category)
180 self.assertRaises(TypeError, self.db.category, 'xx')
181
182 @unittest.expectedFailure # TODO: RUSTPYTHON; - L
183 def test_bidirectional(self):

Callers

nothing calls this directly

Calls 3

categoryMethod · 0.80
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected