Skip to content
Snippets Groups Projects
Commit 02c68738 authored by ojs1g14's avatar ojs1g14
Browse files

update sample_test.py - add rotation

parent f5c81b6a
No related branches found
No related tags found
No related merge requests found
...@@ -21,20 +21,22 @@ class TestBasicFunction(unittest.TestCase): ...@@ -21,20 +21,22 @@ class TestBasicFunction(unittest.TestCase):
s = str(type(vtk)) s = str(type(vtk))
self.assertEqual(s, "<class 'module'>") self.assertEqual(s, "<class 'module'>")
s = str(type(AmpScan.core)) s = str(type(AmpScan.core))
self.assertEqual(s, "<class 'module'>") self.assertEqual(s, "<class 'module'>", "Failed import: AmpScan.core")
@unittest.expectedFailure @unittest.expectedFailure
def test_failure(self): def test_failure(self):
s = str(type("string")) s = str(type("string"))
self.assertEqual(s, "<class 'module'>") self.assertEqual(s, "<class 'module'>")
# def test_import_stl(self): def test_import_stl(self):
# modPath = os.path.abspath(os.getcwd()) modPath = os.path.abspath(os.getcwd())
# sys.path.insert(0, modPath) sys.path.insert(0, modPath)
# stlPath = os.path.abspath(os.getcwd()) + "\\tests\\sample_stl_sphere_ASCII.stl" stlPath = os.path.abspath(os.getcwd()) + "\\sample_stl_sphere_BIN.stl"
# from AmpScan.core import AmpObject from AmpScan.core import AmpObject
# Amp = AmpObject(stlPath) Amp = AmpObject(stlPath)
# self.assertRaises(MemoryError) s = str(type(Amp))
self.assertEqual(s, "<class 'AmpScan.core.AmpObject'>", "Not expected Object")
Amp.rotateAng([1.57, 1.57, 1.57])
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment