Adding testing file for examples

This commit is contained in:
Alan Saul 2013-03-11 13:54:47 +00:00
parent 7bdf01da10
commit 417dac0080

View file

@ -0,0 +1,26 @@
# Copyright (c) 2012, GPy authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
import unittest
import numpy as np
import GPy
class ExamplesTests(unittest.TestCase):
def test_check_model_returned(self):
pass
def test_model_checkgrads(self):
pass
def test_all_examples(self):
#Load models
#Loop through models
for model in models:
self.assertTrue(m.checkgrad())
if __name__ == "__main__":
print "Running unit tests, please be (very) patient..."
unittest.main()