def test_base_range(self): with self.assertRaises(ValueError): np.base_repr(1, 1) with self.assertRaises(ValueError): np.base_repr(1, 37)