def test_no_mode(self): with self.assertRaises(ValueError): with patch('sys.stdout', new=MagicMock()): r.write_starfile([], '', '', mode='', threshold = 6)
def test_no_threshold(self): with self.assertRaises(ValueError): with patch('sys.stdout', new=MagicMock()): r.write_starfile([], '/tmp/normal.star', '/tmp/out.star', mode='resolution')