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

Method test_iter_bits_lsb

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

Source from the content-addressed store, hash-verified

220 self.assertFalse(enum._is_private('MyEnum', name), '%r is a private name?')
221
222 def test_iter_bits_lsb(self):
223 self.assertEqual(list(_iter_bits_lsb(7)), [1, 2, 4])
224 self.assertRaisesRegex(ValueError, '-8 is not a positive integer', list, _iter_bits_lsb(-8))
225
226
227# for subclassing tests

Callers

nothing calls this directly

Calls 4

_iter_bits_lsbFunction · 0.90
listClass · 0.85
assertRaisesRegexMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected