diff --git a/GPy/testing/index_operations_tests.py b/GPy/testing/index_operations_tests.py index 12602879..37cec10b 100644 --- a/GPy/testing/index_operations_tests.py +++ b/GPy/testing/index_operations_tests.py @@ -33,6 +33,8 @@ class Test(unittest.TestCase): self.assertListEqual(self.param_index[one].tolist(), [3]) self.assertListEqual(self.param_index.remove('not in there', [2,3,4]).tolist(), []) + self.assertListEqual(self.view.remove('not in there', [2,3,4]).tolist(), []) + def test_shift_left(self): self.view.shift_left(0, 2) self.assertListEqual(self.param_index[three].tolist(), [2,5]) @@ -82,6 +84,10 @@ class Test(unittest.TestCase): self.assertEqual(self.param_index.size, 6) self.assertEqual(self.view.size, 5) + def test_print(self): + print self.param_index + print self.view + if __name__ == "__main__": #import sys;sys.argv = ['', 'Test.test_index_view'] unittest.main() \ No newline at end of file diff --git a/GPy/testing/model_tests.py b/GPy/testing/model_tests.py index 3c39c5e0..3a2ef955 100644 --- a/GPy/testing/model_tests.py +++ b/GPy/testing/model_tests.py @@ -130,7 +130,7 @@ class MiscTests(unittest.TestCase): m2.kern[:] = m.kern[''].values() np.testing.assert_equal(m.log_likelihood(), m2.log_likelihood()) -class GradientTests(unittest.TestCase): +class GradientTests(np.testing.TestCase): def setUp(self): ###################################### # # 1 dimensional example