gray/tests/13-cutoff/__init__.py

20 lines
469 B
Python
Raw Normal View History

'''
STEP parameter scan
ray jumps into evanescence region (N² < 0)
simple stigmatic beam, O1 mode
'''
from .. import TestCase, GrayTest
class Test(GrayTest, TestCase):
tables = [4, 7, 48]
def test_cutoff_detected(self):
'''
Test whether the cutoff was detected
'''
with open(str(Test.candidate / 'log')) as logfile:
log = logfile.read()
self.assertIn('[error] N⊥²<0, passed through a cutoff', log)