Test_sffsf.py 722 Bytes
Newer Older
1
2
#!/usr/bin/python

3
import unittest
4
from Tests.UnitTests.UnitTest import UnitTest
5
6
from MDANSE import REGISTRY

7
class TestSFFSF(UnitTest):
8

9
10
11
12
    def test(self):
        parameters = {}
        parameters['instrument_resolution'] = ('gaussian', {'mu': 0.0, 'sigma': 10.0})
        parameters['netcdf_input_file'] = '../../../Data/NetCDF/disf_prot.nc'
13
        parameters['output_files'] = ('/tmp/output', ['netcdf'])
14
15
        job = REGISTRY['job']['sffsf']()
        self.assertNotRaises(job.run, parameters, status=False)
16

17
18
19
20
21
def suite():
    loader = unittest.TestLoader()
    s = unittest.TestSuite()
    s.addTest(loader.loadTestsFromTestCase(TestSFFSF))
    return s
22

23
24
if __name__ == '__main__':
    unittest.main(verbosity=2)