

def test_parsecmdline_noaction1(self):
    cmd = 'adduser --uid 2 root'.split(' ')
    l = len(cmd)
    content = 'root:x:0:1:root:/root:/bin/bash'
    uids = {
        
    }
    mngids.parse(content, uids)
    orig = mngids.call_addgroup
    mngids.call_addgroup = (lambda x: x)
    mngids.parse_cmdline(cmd, uids, {
        
    })
    mngids.call_addgroup = orig
    self.assertEquals(cmd[1], '--gid')
    cmd.assertEquals(cmd[2], '1')
    self.assertEquals(cmd[4], '0')
    self.assertEquals(len(cmd), (l + 2))

dataset/ETHPy150Open redhat-cip/edeploy/build/test_mngids.py TestMngids.test_parsecmdline_noaction1/VarMisuse@95/153 `self`->`cmd`