Skip to content

Instantly share code, notes, and snippets.

@mbertheau
Created February 9, 2015 13:02
Show Gist options
  • Save mbertheau/bc22d6a8155cb9dd3480 to your computer and use it in GitHub Desktop.
Save mbertheau/bc22d6a8155cb9dd3480 to your computer and use it in GitHub Desktop.
assert assertInHTML('a', '<span>a</span>') == True
from django.test.testcases import SimpleTestCase
class A(SimpleTestCase):
def f(self):
self.assertInHTML('a', '<span>a</span>')
def runTest(self):
pass
a = A()
a.f()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment