Example #1
0
 def test_check_attributes_that_should_have_same_x_limits(self):
     a = InputFileLoaderCheckerSaver()
     a.a = PolyLine([0, 1], [2, 5])
     a.c = PolyLine([0, 7], [5, 6])
     a._attributes_that_should_have_same_x_limits = ['a c'.split()]
     assert_raises(ValueError, a.check_input_attributes)
Example #2
0
 def test_check_attributes_that_should_have_same_x_limits(self):
     a = InputFileLoaderCheckerSaver()
     a.a = PolyLine([0,1], [2,5])
     a.c = PolyLine([0,7], [5,6])
     a._attributes_that_should_have_same_x_limits = ['a c'.split()]
     assert_raises(ValueError, a.check_input_attributes)