Example #1
0
	def test_ropa_nuevo_returns_correct_html(self):
		request = HttpRequest()
		response = nuevo(request)
		self.assertTrue(response.content.startswith(b'<div>'))
		self.assertIn(b'Ropa</h1>', response.content)
		self.assertIn(b'<input type="submit" value="Guardar" />', response.content)
		self.assertTrue(response.content.endswith(b'</div>'))
Example #2
0
 def test_ropa_nuevo_returns_correct_html(self):
     request = HttpRequest()
     response = nuevo(request)
     self.assertIn(b'<html>', response.content)
     self.assertIn(b'Prenda</h1>', response.content)
     self.assertIn(b'<input class="btn btn-warning" type="submit" value="Guardar" />',
                   response.content)
     self.assertTrue(response.content.endswith(b'</html>'))