Source
330
330
for sideband in ['signalshift', 'imageshift']:
331
331
myshift = self.standard_param[sideband] + [50]
332
332
for shift in (myshift[:5], myshift):
333
333
print('Test len(%s)=%d' % (sideband, len(shift)))
334
334
param = {sideband: shift}
335
335
self.run_exception(ref_message, **param)
336
336
337
337
# T-022, T-023, T-024
338
338
def test_refval_invalid(self):
339
339
"""test failure: refval is invalid (empty, a negative freqency or not a frequency)"""
340
-
ref_message = ('.* cDoubleQuant type.*',
340
+
ref_message = ('_refval is not a dictionary',
341
341
'Frequency should be positive',
342
342
'From/to units not consistent.')
343
343
for refval, message in zip(('', '-100GHz', '300K'), ref_message):
344
344
print("Test refval='%s'" % refval)
345
345
self.run_exception(message, refval=refval, getbothside=True)
346
346
347
347
# T-027, T-031
348
348
def test_threshold_outofrange(self):
349
349
"""test failure: threshold = 0.0, 1.0"""
350
350
ref_message = 'Rejection limit should be > 0.0 and < 1.0'