code: def test_chebpts1(self):
      # test exceptions
      assert_raises(ValueError, cheb.chebpts1, 1.5)
      assert_raises(ValueError, cheb.chebpts1, 0)
  
      # test points
      tgt = [0]
      assert_almost_equal(cheb.chebpts1(1), tgt)
      tgt = [-0.70710678118654746, 0.70710678118654746]
      assert_almost_equal(cheb.chebpts1(2), tgt)
      tgt = [-0.86602540378443871, 0, 0.86602540378443871]
      assert_almost_equal(cheb.chebpts1(3), tgt)
      tgt = [-0.9238795325, -0.3826834323, 0.3826834323, 0.9238795325]
      assert_almost_equal(cheb.chebpts1(4), tgt)
  
imports: from functools import reduce
  import numpy
  import numpy.polynomial.chebyshev
  from numpy.polynomial.polynomial import polyval
  from numpy.testing import assert_almost_equal, assert_raises, assert_equal, assert_
label_desc: Use image node_id 8 for calling the TestMisc obj's underlying member method code with example usage: obj.test_chebpts1() without return types