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
This commit is contained in:
Aymeric Augustin 2011-10-26 21:03:18 +00:00
parent 4819797f70
commit 4cfb7632e0
5 changed files with 0 additions and 19 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -153,6 +153,3 @@ class RenderToStringTest(unittest.TestCase):
self.assertRaisesRegexp(TemplateDoesNotExist,
'No template names provided$',
loader.select_template, [])
if __name__ == "__main__":
unittest.main()

View File

@ -1711,7 +1711,3 @@ class RequestContextTests(BaseTemplateResponseTest):
template.Template('{% include "child" only %}').render(ctx),
'none'
)
if __name__ == "__main__":
unittest.main()