Test examples

This commit is contained in:
Rowan Cockett
2015-10-30 13:59:25 -07:00
parent b8fe0cfdbf
commit 7106b2b57f
3 changed files with 67 additions and 57 deletions
+17
View File
@@ -0,0 +1,17 @@
import unittest
import sys
from SimPEG.Examples import Linear, DCfwd
import numpy as np
class TestLinear(unittest.TestCase):
def test_running(self):
Linear.run(100, plotIt=False)
self.assertTrue(True)
class TestDCfwd(unittest.TestCase):
def test_running(self):
DCfwd.run(plotIt=False)
self.assertTrue(True)
if __name__ == '__main__':
unittest.main()