Haris Tech

Generation

testsThu, 17 Oct 2024

<!DOCTYPE html> <html lang="id"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Website E-Commerce</title> <link rel="stylesheet" href="styles.css"> </head> <body> <header> <div class="logo">Tokopedia Clone</div> <nav> <ul> <li><a href="#">Beranda</a></li> <li><a href="#">Produk</a></li> <li><a href="#">Tentang Kami</a></li> <li><a href="#">Kontak</a></li> </ul> </nav> </header> <main> <h1>Produk Terbaru</h1> <div class="product-list"> <div class="product-item"> <img src="https://via.placeholder.com/150" alt="Produk 1"> <h2>Produk 1</h2> <p>Deskripsi singkat produk 1.</p> <span>Rp 100.000</span> <button>Beli Sekarang</button> </div> <div class="product-item"> <img src="https://via.placeholder.com/150" alt="Produk 2"> <h2>Produk 2</h2> <p>Deskripsi singkat produk 2.</p> <span>Rp 200.000</span> <button>Beli Sekarang</button> </div> <!-- Tambahkan lebih banyak produk sesuai kebutuhan --> </div> </main> <footer> <p>&copy; 2023 Tokopedia Clone. Semua hak dilindungi.</p> </footer> </body> </html>

mport unittest class TestHTML(unittest.TestCase): def test_basic(self): self.assertEqual(html.escape("hello"), "hello") self.assertEqual(html.escape("hello<tag>"), "hello&lt;tag&gt;") self.assertEqual(html.escape("hello<tag>there"), "hello&lt;tag

Questions about programming?Chat with your personal AI assistant