Created
February 9, 2015 13:02
-
-
Save mbertheau/bc22d6a8155cb9dd3480 to your computer and use it in GitHub Desktop.
assert assertInHTML('a', '<span>a</span>') == True
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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