예제 #1
0
 def test_noadaptind_is_not_none(self):
     self.assertEqual(check_noadaptind(no_adapt=[1], npar=3), [1],
                      msg='Returns input.')
예제 #2
0
 def test_noadaptind_is_none(self):
     self.assertTrue(np.array_equal(check_noadaptind(no_adapt=None, npar=3),
                                    np.zeros([3], dtype=bool)),
                     msg='Returns boolean array of size 3.')