Skip to content

Instantly share code, notes, and snippets.

@bfirsh
Created July 5, 2011 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bfirsh/1066100 to your computer and use it in GitHub Desktop.
Save bfirsh/1066100 to your computer and use it in GitHub Desktop.
from django.test import TestCase
from needle.cases import NeedleTestCase
class MastheadTest(NeedleTestCase, TestCase):
def test_masthead(self):
self.driver.load_html(self.client.get('/').content)
self.assertScreenshot('//*[@id="masthead"]', 'masthead')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment