JSON content convenience helper thing
Bug #1024284 reported by
Jonathan Lange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Fix Released
|
Wishlist
|
Jonathan Lange |
Bug Description
Do it.
Related branches
lp:~jml/testtools/json_content
- Jonathan Lange: Needs Fixing
- Martin Packman: Approve
-
Diff: 120 lines (+30/-5)4 files modifiedtesttools/content.py (+7/-2)
testtools/content_type.py (+3/-1)
testtools/tests/test_content.py (+8/-0)
testtools/tests/test_content_type.py (+12/-2)
Changed in testtools: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
assignee: | nobody → Jonathan Lange (jml) |
Changed in testtools: | |
status: | Triaged → In Progress |
Changed in testtools: | |
status: | In Progress → Fix Committed |
milestone: | none → next |
Changed in testtools: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
e.g. 'application' , 'json', {'charset': 'utf8'})
def json_content(data):
JSON_TYPE = ContentType(
return Content(JSON_TYPE, lambda: [json.dumps(data)])