def test_boolean(self): p = Parameter('test_bool', 'boolean') s = p.random_sample() self.assertTrue(isinstance(s, np.bool_))