def testHomePageNavContext1(self): request = HttpRequest() response = home_page(request) html = response.content.decode('utf8') self.assertIn( '<nav class="navbar navbar-expand-lg navbar-dark bg-dark">', html, 'it broke')
def testHomePageNavContext3(self): request = HttpRequest() response = home_page(request) html = response.content.decode('utf8') self.assertIn( '<a class="nav-link" href="page1.html" id="page1Anchor">Question 1</a>', html, 'it broke')
def testHomeButton(self): request = HttpRequest() response = home_page(request) html = response.content.decode('utf8') self.assertIn( '<button id="submit" type="submit" onclick="storeName()">Submit!</button>', html, 'it broke')
def testHomeLabel(self): request = HttpRequest() response = home_page(request) html = response.content.decode('utf8') self.assertIn( '<label for="inputBox">What is your name, fair one?</label>', html, 'it broke')
def testHomeP(self): request = HttpRequest() response = home_page(request) html = response.content.decode('utf8') self.assertIn('<p id="output"></p>', html, 'it broke')
def testHomeInput(self): request = HttpRequest() response = home_page(request) html = response.content.decode('utf8') self.assertIn('<input type="text" id="inputBox">', html, 'it broke')
def testHomeH1(self): request = HttpRequest() response = home_page(request) html = response.content.decode('utf8') self.assertIn('<h1>Welcome Traveler!</h1>', html, 'it broke')