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.")
def test_nurbs_check_infile_instantiation_no_infile(self): nurbs_handler = NurbsHandler() nurbs_handler.shape = True with self.assertRaises(RuntimeError): nurbs_handler._check_infile_instantiation()