def test_get_configured_rules_ignore_disable_rules(self): password_profile = { "lowercase": False, "uppercase": True, "digits": False, "symbols": True, } self.assertListEqual(password._get_configured_rules(password_profile), ["uppercase", "symbols"])
def test_get_configured_rules_empty_when_no_rules_in_profile(self): password_profile = {} self.assertListEqual(password._get_configured_rules(password_profile), [])