

def testExceptions(self):
    self.assertRaises(TypeError, scot.Workspace)
    api = scot.Workspace({
        'model_order': 50,
    })
    self.assertRaises(RuntimeError, api.remove_sources, [])
    self.assertRaises(RuntimeError, api.do_mvarica)
    self.assertRaises(RuntimeError, api.do_cspvarica)
    self.assertRaises(RuntimeError, api.do_ica)
    self.assertRaises(RuntimeError, api.fit_var)
    self.assertRaises(TypeError, api.get_connectivity)
    self.assertRaises(RuntimeError, api.get_connectivity, 'S')
    self.assertRaises(RuntimeError, api.get_tf_connectivity, 'PDC', 10, 1)
    api.set_data([[[1, 1], [1, 1]], [[1, 1], [1, 1]]])
    self.assertRaises(RuntimeError, api.do_cspvarica)

dataset/ETHPy150Open scot-dev/scot/scot/tests/test_ooapi.py TestMVARICA.testExceptions/original