def test_executable(self): action = actions.StorePathAction(['--foo'], dests=['foo'], executable=True) self.assertTrue(action.type._assert_executable)
def test_default_attributes(self): action = actions.StorePathAction(['--foo'], dests=['foo']) self.assertEqual(action.nargs, Nargs.SINGLE) self.assertIsInstance(action.type, PathType)