Behat/CommonContexts — pull request #47 by dready (2013-09-11 12:57:27+00:00)
Title: implement some rudiment json part test

while testing a list resource (get all items) i found it hard to check if specific parts of items are present. The simple theResponseShouldContainJson does not allow you to check for part of the data and the theResponseShouldContain does not work well with json data structure.

this allows you to use a PyStringNode to check for. It is not perfect but works for me.

For Example:
And response should contain data:
"""
{"foo":null,"bar":null,"baz":1,"text":"My good text","description":null,"id":1}
"""

Theoretically you can test any data with it, not just json (no parsing/decoding included)