Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_languages_request():
langs = api.get_languages(API_BASE_URL)
assert isinstance(langs, list)
assert len(langs) > 2
found_german = False
for i, dic in enumerate(langs):
if dic["code"] == "de":
found_german = True
assert found_german