def generate_for_site(self, username, password, site, override=()): config = self.get_site(site, password) if override: config.update(override) for k, v in list(config.items()): if v is None: del config[k] self.fill_out_config(config) return generator.generate(username, password, site, config)
def test_scrypt_vectors(username, password, site, options, expected): options = dict(options, multibase=hex_multibase) assert generator.generate(username, password, site, options) == expected