def test_set_get_precision(self): ht.set_printoptions(precision=6) self.assertEqual(6, ht.get_printoptions()["precision"])
def test_set_get_sci_mode(self): ht.set_printoptions(sci_mode=True) self.assertEqual(True, ht.get_printoptions()["sci_mode"])
def test_set_get_edgeitems(self): ht.set_printoptions(edgeitems=8) self.assertEqual(8, ht.get_printoptions()["edgeitems"])
def test_set_get_linewidth(self): ht.set_printoptions(linewidth=9) self.assertEqual(9, ht.get_printoptions()["linewidth"])
def test_set_get_threshold(self): ht.set_printoptions(threshold=7) self.assertEqual(7, ht.get_printoptions()["threshold"])