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

Method test_constructor

Lib/test/test_array.py:235–239  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

233 return typecodes[(typecodes.index(self.typecode)+1) % len(typecodes)]
234
235 def test_constructor(self):
236 a = array.array(self.typecode)
237 self.assertEqual(a.typecode, self.typecode)
238 self.assertGreaterEqual(a.itemsize, self.minitemsize)
239 self.assertRaises(TypeError, array.array, self.typecode, None)
240
241 def test_len(self):
242 a = array.array(self.typecode)

Callers 1

test_constructorMethod · 0.45

Calls 3

assertRaisesMethod · 0.95
assertGreaterEqualMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected