

def test_parsecmdline_noaction(self):
    cmd = 'adduser --gid root root'.split(' ')
    l = len(cmd)
    passwd = 'root:x:0:1:root:/root:/bin/bash'
    group = 'root:x:1:'
    uids = {
        
    }
    gids = {
        
    }
    mngids.parse(passwd, uids)
    mngids.parse(group, gids, True)
    mngids.parse_cmdline(cmd, uids, gids)
    self.assertEquals(cmd[1], '--uid')
    self.assertEquals(passwd[2], '0')
    self.assertEquals(cmd[4], '1')
    self.assertEquals(len(cmd), (l + 2))

dataset/ETHPy150Open redhat-cip/edeploy/build/test_mngids.py TestMngids.test_parsecmdline_noaction/VarMisuse@95/152 `cmd`->`passwd`