对 Django 应用生成的 HTML 进行验证: django-html-validator

jopen 10年前

一个工具用于对你 Django 应用生成的 HTML 进行验证.

from django.test import TestCase  from htmlvalidator.client import ValidatingClient      class MyAppTests(TestCase):        def setUp(self):          super(MyAppTests, self).setUp()          self.client = ValidatingClient()        def test_homepage(self):          response = self.client.get('/')          self.assertEqual(response.status_code, 200)

项目主页:http://www.open-open.com/lib/view/home/1414719771169