input: Write a function that creates a web scraper using Python to collect the title and content from the homepage of a given website. The function should take a single argument, the URL of the website to scrape. The function should return a dictionary with keys 'title' and 'content' containing the text of the title and content, respectively. 
  
  def extract_website_info(url):
      import requests
      import bs4
      r = requests.get(url)
      html = bs4.BeautifulSoup(r.text,"html.parser")
      title = html.find('title')
      content = html.find('div', {'class': 'content'})
      return {'title': title.text if title else None, 'content': content.text if content else None}
  
  assert extract_website_info('https://www.example.com')=={'title': 'Example Domain', 'content': 'This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.'}
output: def extract_website_info(url):
      import requests
      import bs4
      r = requests.get(url)
      html = bs4.BeautifulSoup(r.text,"html.parser")
      title = html.find('title')
      content = html.find('div', {'class': 'content'})
      return {'title': title.text if title else None, 'content': content.text if content else None}