コード例 #1
0
 def test_nurbs_check_infile_instantiation_correct(self):
     nurbs_handler = NurbsHandler()
     nurbs_handler.shape = True
     nurbs_handler.infile = "something"
     try:
         nurbs_handler._check_infile_instantiation()
     except RuntimeError:
         self.fail(
             "Handler was instantiated correctly, yet an error was raised.")
コード例 #2
0
 def test_nurbs_check_infile_instantiation_no_shape(self):
     nurbs_handler = NurbsHandler()
     nurbs_handler.infile = "something"
     with self.assertRaises(RuntimeError):
         nurbs_handler._check_infile_instantiation()