コード例 #1
0
    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))
コード例 #2
0
 def test_swivel(self):
     with tempfile.TemporaryDirectory() as tmpdir:
         args = default_swivel_args(tmpdir)
         run_swivel(args)
         check_swivel_results(self, tmpdir)