コード例 #1
0
    def test_init_grid_flipped(self):
        with self.assertRaises(SystemExit) as cm:
            filename = os.path.join(dirname,
                                    '/test_grids/init_grid_flipped.txt')
            enter_castle(filename)

        self.assertEqual(cm.exception.code, 0)
コード例 #2
0
    def test_update_me_file(self):
        with self.assertRaises(SystemExit) as cm:
            filename = os.path.join(dirname, '/test_grids/update_me.txt')
            enter_castle(filename)

        self.assertEqual(cm.exception.code, 0)
コード例 #3
0
# -*- coding: utf-8 -*-
"""save_princess_peach.__main__.py

Initialize file.
"""
from save_princess_peach.entry import enter_castle

enter_castle()