Python getopt.short_has_arg() Examples

The following are code examples for showing how to use getopt.short_has_arg(). They are from open source Python projects. You can vote up the examples you like or vote down the ones you don't like.

Example 1
Project: pyblish-win   Author: pyblish   File: test_getopt.py    GNU Lesser General Public License v3.0 5 votes vote down vote up
def test_short_has_arg(self):
        self.assertTrue(getopt.short_has_arg('a', 'a:'))
        self.assertFalse(getopt.short_has_arg('a', 'a'))
        self.assertError(getopt.short_has_arg, 'a', 'b') 
Example 2
Project: NiujiaoDebugger   Author: MrSrc   File: test_getopt.py    GNU General Public License v3.0 5 votes vote down vote up
def test_short_has_arg(self):
        self.assertTrue(getopt.short_has_arg('a', 'a:'))
        self.assertFalse(getopt.short_has_arg('a', 'a'))
        self.assertError(getopt.short_has_arg, 'a', 'b') 
Example 3
Project: ironpython2   Author: IronLanguages   File: test_getopt.py    Apache License 2.0 5 votes vote down vote up
def test_short_has_arg(self):
        self.assertTrue(getopt.short_has_arg('a', 'a:'))
        self.assertFalse(getopt.short_has_arg('a', 'a'))
        self.assertError(getopt.short_has_arg, 'a', 'b') 
Example 4
Project: oss-ftp   Author: aliyun   File: test_getopt.py    MIT License 5 votes vote down vote up
def test_short_has_arg(self):
        self.assertTrue(getopt.short_has_arg('a', 'a:'))
        self.assertFalse(getopt.short_has_arg('a', 'a'))
        self.assertError(getopt.short_has_arg, 'a', 'b') 
Example 5
Project: Project-New-Reign---Nemesis-Main   Author: ShikyoKira   File: test_getopt.py    GNU General Public License v3.0 5 votes vote down vote up
def test_short_has_arg(self):
        self.assertTrue(getopt.short_has_arg('a', 'a:'))
        self.assertFalse(getopt.short_has_arg('a', 'a'))
        self.assertError(getopt.short_has_arg, 'a', 'b') 
Example 6
Project: cells   Author: AlesTsurko   File: test_getopt.py    MIT License 5 votes vote down vote up
def test_short_has_arg(self):
        self.assertTrue(getopt.short_has_arg('a', 'a:'))
        self.assertFalse(getopt.short_has_arg('a', 'a'))
        self.assertError(getopt.short_has_arg, 'a', 'b')