Skip to content

Instantly share code, notes, and snippets.

@imhoffd
Created August 6, 2014 21:29
Show Gist options
  • Save imhoffd/c435f844b103e44e4a52 to your computer and use it in GitHub Desktop.
Save imhoffd/c435f844b103e44e4a52 to your computer and use it in GitHub Desktop.
from helper_something import assert_later
class TestCase():
def test_blah(self):
self.assertCollectionPayload(rs.response,
payload={'type': 'legacy_profile',
'client_id': assert_later(self.assertRegex, '[0-9]*'),
'sub_doc': assert_later(self.assertPayload,
payload={'type': 'something',
'id': assert_later(self.assertRegex, '[A-Z0-9]*')})})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment