20 lines
469 B
Python
20 lines
469 B
Python
|
'''
|
||
|
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)
|