input: Write a function to generate an HTML table displaying information about the top 10 bestselling books in a specific genre. Assuming that the book information is stored in a SQLite database named 'books.db' and the table is named 'Books' with columns: id (int), title (string), author (string), genre (string), sales (int). The function should take the genre as input and return the HTML table as a string.
  assert generate_html_table_for_genre('Fantasy')=="""<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr><tr><td>[Fantasy Book 1 Title]</td><td>[Fantasy Book 1 Author]</td><td>Fantasy</td><td>[Fantasy Book 1 Sales]</td></tr><tr><td>[Fantasy Book 2 Title]</td><td>[Fantasy Book 2 Author]</td><td>Fantasy</td><td>[Fantasy Book 2 Sales]</td></tr><tr><td>[Fantasy Book 3 Title]</td><td>[Fantasy Book 3 Author]</td><td>Fantasy</td><td>[Fantasy Book 3 Sales]</td></tr><tr><td>[Fantasy Book 4 Title]</td><td>[Fantasy Book 4 Author]</td><td>Fantasy</td><td>[Fantasy Book 4 Sales]</td></tr><tr><td>[Fantasy Book 5 Title]</td><td>[Fantasy Book 5 Author]</td><td>Fantasy</td><td>[Fantasy Book 5 Sales]</td></tr><tr><td>[Fantasy Book 6 Title]</td><td>[Fantasy Book 6 Author]</td><td>Fantasy</td><td>[Fantasy Book 6 Sales]</td></tr><tr><td>[Fantasy Book 7 Title]</td><td>[Fantasy Book 7 Author]</td><td>Fantasy</td><td>[Fantasy Book 7 Sales]</td></tr><tr><td>[Fantasy Book 8 Title]</td><td>[Fantasy Book 8 Author]</td><td>Fantasy</td><td>[Fantasy Book 8 Sales]</td></tr><tr><td>[Fantasy Book 9 Title]</td><td>[Fantasy Book 9 Author]</td><td>Fantasy</td><td>[Fantasy Book 9 Sales]</td></tr><tr><td>[Fantasy Book 10 Title]</td><td>[Fantasy Book 10 Author]</td><td>Fantasy</td><td>[Fantasy Book 10 Sales]</td></tr></table>"""
  assert generate_html_table_for_genre('Mystery')=="""<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr><tr><td>[Mystery Book 1 Title]</td><td>[Mystery Book 1 Author]</td><td>Mystery</td><td>[Mystery Book 1 Sales]</td></tr><tr><td>[Mystery Book 2 Title]</td><td>[Mystery Book 2 Author]</td><td>Mystery</td><td>[Mystery Book 2 Sales]</td></tr><tr><td>[Mystery Book 3 Title]</td><td>[Mystery Book 3 Author]</td><td>Mystery</td><td>[Mystery Book 3 Sales]</td></tr><tr><td>[Mystery Book 4 Title]</td><td>[Mystery Book 4 Author]</td><td>Mystery</td><td>[Mystery Book 4 Sales]</td></tr><tr><td>[Mystery Book 5 Title]</td><td>[Mystery Book 5 Author]</td><td>Mystery</td><td>[Mystery Book 5 Sales]</td></tr><tr><td>[Mystery Book 6 Title]</td><td>[Mystery Book 6 Author]</td><td>Mystery</td><td>[Mystery Book 6 Sales]</td></tr><tr><td>[Mystery Book 7 Title]</td><td>[Mystery Book 7 Author]</td><td>Mystery</td><td>[Mystery Book 7 Sales]</td></tr><tr><td>[Mystery Book 8 Title]</td><td>[Mystery Book 8 Author]</td><td>Mystery</td><td>[Mystery Book 8 Sales]</td></tr><tr><td>[Mystery Book 9 Title]</td><td>[Mystery Book 9 Author]</td><td>Mystery</td><td>[Mystery Book 9 Sales]</td></tr><tr><td>[Mystery Book 10 Title]</td><td>[Mystery Book 10 Author]</td><td>Mystery</td><td>[Mystery Book 10 Sales]</td></tr></table>"""
  assert generate_html_table_for_genre('Sci-Fi')=="""<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr><tr><td>[Sci-Fi Book 1 Title]</td><td>[Sci-Fi Book 1 Author]</td><td>Sci-Fi</td><td>[Sci-Fi Book 1 Sales]</td></tr><tr><td>[Sci-Fi Book 2 Title]</td><td>[Sci-Fi Book 2 Author]</td><td>Sci-Fi</td><td>[Sci-Fi Book 2 Sales]</td></tr><tr><td>[Sci-Fi Book 3 Title]</td><td>[Sci-Fi Book 3 Author]</td><td>Sci-Fi</td><td>[Sci-Fi Book 3 Sales]</td></tr><tr><td>[Sci-Fi Book 4 Title]</td><td>[Sci-Fi Book 4 Author]</td><td>Sci-Fi</td><td>[Sci-Fi Book 4 Sales]</td></tr><tr><td>[Sci-Fi Book 5 Title]</td><td>[Sci-Fi Book 5 Author]</td><td>Sci-Fi</td><td>[Sci-Fi Book 5 Sales]</td></tr><tr><td>[Sci-Fi Book 6 Title]</td><td>[Sci-Fi Book 6 Author]</td><td>Sci-Fi</td><td>[Sci-Fi Book 6 Sales]</td></tr><tr><td>[Sci-Fi Book 7 Title]</td><td>[Sci-Fi Book 7 Author]</td><td>Sci-Fi</td><td>[Sci-Fi Book 7 Sales]</td></tr><tr><td>[Sci-Fi Book 8 Title]</td><td>[Sci-Fi Book 8 Author]</td><td>Sci-Fi</td><td>[Sci-Fi Book 8 Sales]</td></tr><tr><td>[Sci-Fi Book 9 Title]</td><td>[Sci-Fi Book 9 Title]</td><td>Sci-Fi</td><td>[Sci-Fi Book 9 Sales]</td></tr><tr><td>[Sci-Fi Book 10 Title]</td><td>[Sci-Fi Book 10 Author]</td><td>Sci-Fi</td><td>[Sci-Fi Book 10 Sales]</td></tr></table>"""
output: 
  def generate_html_table_for_genre(genre):
      import sqlite3
      conn = sqlite3.connect('books.db')
      cursor = conn.cursor()
      cursor.execute("SELECT title, author, genre, sales FROM Books WHERE genre=? ORDER BY sales DESC LIMIT 10", (genre,))
      rows = cursor.fetchall()
      conn.close()
      
      html_table = "<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr>"
      for row in rows:
          html_table += f"<tr><td>{row[0]}</td><td>{row[1]}</td><td>{row[2]}</td><td>{row[3]}</td></tr>"
      html_table += "</table>"
      
      return html_table
  