def test_swivel_bad_params_submatrix_cols(self): with tempfile.TemporaryDirectory() as tmpdir: args = default_swivel_args(tmpdir) args.submatrix_cols += 1 self.assertRaises(ValueError, lambda: run_swivel(args)) args.submatrix_cols -= 1 args.submatrix_rows += 1 self.assertRaises(ValueError, lambda: run_swivel(args))
def test_swivel(self): with tempfile.TemporaryDirectory() as tmpdir: args = default_swivel_args(tmpdir) run_swivel(args) check_swivel_results(self, tmpdir)