Commit bab9d537 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

Unit test

parent 9357954c
\ No newline at end of file
import requests
import sys
from bs4 import BeautifulSoup
url = sys.argv[1]
content = sys.argv[2]
page = BeautifulSoup(requests.get(url).text, 'html.parser')
if not page.title.text == content:
print(f"Wrong title: '{page.title.text}' should be '{content}'")
if not page.h1.text == content:
print(f"Wrong h1: '{page.h1.text}' should be '{content}'")
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment