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_load_soup(self):
"""
Test if the load_soup function works correctly
"""
word = 'laufen'
url = duden.URL_FORM.format(word=word)
r = requests.get(url)
soup = bs4.BeautifulSoup(r.text, 'html.parser')
dword = duden.load_soup(soup)
self.assertEqual(word, dword.title)