Kaydet (Commit) 4cfb7632 authored tarafından Aymeric Augustin's avatar Aymeric Augustin

Removed remains from times when tests could be run outside of runtests.py.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@17040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 4819797f
......@@ -83,7 +83,3 @@ Paragraph 2 with a link_
t = Template("{% load markup %}{{ rest_content|restructuredtext }}")
rendered = t.render(Context({'rest_content':self.rest_content})).strip()
self.assertEqual(rendered, self.rest_content)
if __name__ == '__main__':
unittest.main()
......@@ -1581,8 +1581,3 @@ class TestEtagWithAdmin(TestCase):
response = self.client.get('/test_admin/admin/')
self.assertEqual(response.status_code, 200)
self.assertTrue(response.has_header('ETag'))
if __name__ == '__main__':
unittest.main()
......@@ -53,6 +53,3 @@ class DBTypeCasts(unittest.TestCase):
for inpt, expected in v:
got = getattr(typecasts, k)(inpt)
self.assertEqual(got, expected, "In %s: %r doesn't match %r. Got %r instead." % (k, inpt, expected, got))
if __name__ == '__main__':
unittest.main()
......@@ -153,6 +153,3 @@ class RenderToStringTest(unittest.TestCase):
self.assertRaisesRegexp(TemplateDoesNotExist,
'No template names provided$',
loader.select_template, [])
if __name__ == "__main__":
unittest.main()
......@@ -1711,7 +1711,3 @@ class RequestContextTests(BaseTemplateResponseTest):
template.Template('{% include "child" only %}').render(ctx),
'none'
)
if __name__ == "__main__":
unittest.main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment