示例#1
0
    def test_executable(self):
        action = actions.StorePathAction(['--foo'],
                                         dests=['foo'],
                                         executable=True)

        self.assertTrue(action.type._assert_executable)
示例#2
0
    def test_default_attributes(self):
        action = actions.StorePathAction(['--foo'], dests=['foo'])

        self.assertEqual(action.nargs, Nargs.SINGLE)
        self.assertIsInstance(action.type, PathType)