input: Write a python function to fetch news articles from a given URL.
  assert len(get_news_articles("https://example.com/news")) > 0
  assert isinstance(get_news_articles("https://example.com/news")[0], dict)
  assert 'title' in get_news_articles("https://example.com/news")[0]
  assert 'link' in get_news_articles("https://example.com/news")[0]
output: import requests
  from bs4 import BeautifulSoup
  
  def get_news_articles(url):
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      articles = []
      for item in soup.find_all('article'):
          title_tag = item.find('h2')  # Assuming the title is within an <h2> tag
          link_tag = item.find('a', href=True)
          if title_tag and link_tag:
              title = title_tag.get_text(strip=True)
              link = link_tag['href']
              articles.append({'title': title, 'link': link})
      return articles