Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/p/y/pymacadmin-HEAD/bin/keychain-delete.py   pymacadmin(Download)
 
        print "Removing %s" % item
        keychain.remove(item)
    except KeyError, exc:
        print >>sys.stderr, exc.message

src/p/y/PyMacAdmin-1.0/bin/keychain-delete.py   PyMacAdmin(Download)
 
        print "Removing %s" % item
        keychain.remove(item)
    except KeyError, exc:
        print >>sys.stderr, exc.message

src/p/y/pymacadmin-HEAD/lib/PyMacAdmin/Security/tests/test_Keychain.py   pymacadmin(Download)
        self.assertEquals(i.password, k.find_generic_password(service_name, account_name).password)
 
        k.remove(i)
        self.assertRaises(KeyError, k.find_generic_password, **{"service_name": service_name, "account_name": account_name})
 
        self.assertEquals(i.password, k.find_internet_password(server_name=kwargs['server_name'], account_name=kwargs['account_name']).password)
 
        k.remove(i)
        self.assertRaises(KeyError, k.find_internet_password, **{"server_name": kwargs['server_name'], "account_name": kwargs['account_name']})
 

src/l/u/LuggagePackages-HEAD/CrankdInstaller/PyMacAdmin/Security/tests/test_Keychain.py   LuggagePackages(Download)
        self.assertEquals(i.password, k.find_generic_password(service_name, account_name).password)
 
        k.remove(i)
        self.assertRaises(KeyError, k.find_generic_password, **{"service_name": service_name, "account_name": account_name})
 
        self.assertEquals(i.password, k.find_internet_password(server_name=kwargs['server_name'], account_name=kwargs['account_name']).password)
 
        k.remove(i)
        self.assertRaises(KeyError, k.find_internet_password, **{"server_name": kwargs['server_name'], "account_name": kwargs['account_name']})