diff --git a/tests/examples/test_examples.py b/tests/examples/test_examples.py index cffa2094..2e4803b1 100644 --- a/tests/examples/test_examples.py +++ b/tests/examples/test_examples.py @@ -4,11 +4,11 @@ from SimPEG import Examples import numpy as np def get(test): - def func(self): + def test_func(self): print '\nTesting %s.run(plotIt=False)\n'%test getattr(Examples, test).run(plotIt=False) self.assertTrue(True) - return func + return test_func attrs = dict() for test in Examples.__examples__: attrs['test_'+test] = get(test)