Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def given_locales(self, *shortnames):
self.known_languages = [default_loader.get_locale(shortname)
for shortname in shortnames]
def given_bundled_language(self, shortname):
self.language = default_loader.get_locale(shortname)
def given_known_languages(self, shortnames):
self.known_languages = [default_loader.get_locale(shortname)
for shortname in shortnames]