def addDevice(self, username, device_id, device_name):
    try:
      password = kDevAccounts[username]
    except KeyError:
      ErrorExit('unable to find client: %s\n%s' %
                (username,
                 '\n'.join(['  %s' % account for account in kDevAccounts.keys()])))

    client = self._getClient(username, password)
    client.addDevice(device_id, device_name)
dataset/ETHPy150Open viewfinderco/viewfinder/clients/ios/scripts/app-tool.py/AppTool.addDevice/original