

def test_parse_args_1(self):
    test_data = {
        'address': '192.168.1.2',
        'user': 'admin',
        'pswd': 'superpswd',
        'port': '8010',
        'type': 'foscam',
    }
    expeted_data = {
        'address': '192.168.1.2:8010',
        'user': 'admin',
        'pswd': 'superpswd',
        'name': None,
    }
    self.assertEqual(parse_args(test_data), expeted_data)

dataset/ETHPy150Open eraclitux/ipcampy/ipcampy/test/test_sentry.py TestSentry.test_parse_args_1/original