summaryrefslogtreecommitdiff
path: root/testtools/tests/test_content.py
Commit message (Expand)AuthorAgeFilesLines
* Upgrade asserts with teyit for Python 3.11 compatibilityHugo van Kemenade2022-02-071-1/+1
* Upgrade Python syntax with pyupgrade --py3-plusHugo2020-01-181-2/+2
* Remove redundant Python 2 compatability codeHugo2020-01-181-16/+11
* Overhaul exception reporting.Robert Collins2015-03-101-4/+0
* Make text_content more explicit about the types that it accepts.Thomi Richards2014-10-161-0/+11
* Raise a TypeError when text_content is passed bytes, so we get an error as ea...Thomi Richards2014-05-161-1/+7
* Add testtools.StacktraceContent.Thomi Richards2013-11-261-0/+28
* Add StackLinesContent, reimplement TracebackContent to use this new class.Thomi Richards2013-10-251-0/+44
* Restore test suite compatability with Python 3.x.Robert Collins2012-12-171-9/+9
* * ``content_from_file`` and ``content_from_stream`` now accept seek_offset andRobert Collins2012-12-111-0/+35
* Fix json_content helper on pythons with a unicode native str typeMartin2012-07-271-1/+1
* Add a JSON content type.Jonathan Lange2012-07-131-3/+2
* Add a json_content helper.Jonathan Lange2012-07-131-0/+9
* Copyright. FlakesJonathan Lange2012-02-041-1/+1
* Add as_text, a content helper.Jonathan Lange2012-02-041-0/+6
* Close files properly in test_from_stream_eager_loadingMartin2011-12-211-1/+2
* Refix various problems that broke Python 3 supportMartin2011-04-211-10/+14
* Tweaks for Jono's consideration.Robert Collins2011-02-191-3/+3
* More tests for attach_file, make lazy read work.Jonathan Lange2011-02-011-5/+48
* read_now => lazy_read, as per review.Jonathan Lange2011-02-011-2/+2
* Change the order of parameters to attach_fileJonathan Lange2011-02-011-1/+1
* Move attachFile from TestCase to be a standalone function.Jonathan Lange2011-02-011-0/+17
* Move Content.from_stream to be content_from_streamJonathan Lange2011-02-011-7/+9
* Delete from_text.Jonathan Lange2011-02-011-9/+1
* Copyright bumpJonathan Lange2011-02-011-1/+1
* Merge trunk.Jonathan Lange2011-02-011-1/+1
|\
| * Get it right.Jonathan Lange2011-01-221-1/+1
* | Add eager loading options to from_file and from_streamJonathan Lange2010-12-291-0/+20
* | More documentation.Jonathan Lange2010-12-291-0/+7
* | Basic convenience method for reading content from a file.Jonathan Lange2010-12-291-0/+16
* | Make it a classmethod, and make text_content one too.Jonathan Lange2010-12-291-15/+16
* | Add a `stream_content` helper.Jonathan Lange2010-12-291-4/+34
* | PEP 8.Jonathan Lange2010-12-291-6/+7
|/
* More Python 3 fixesJonathan Lange2010-11-181-6/+13
|\
| * Make sure a byte string is used to join iterated bytes in Content obejctsMartin2010-11-161-6/+13
* | Clearer variable name in test code.Robert Collins2010-11-111-6/+7
* | Convert assertRaises usage to assertThat.Robert Collins2010-11-111-6/+11
|/
* Add a convenience function for string content.Jonathan Lange2010-10-281-2/+10
* Merge trunk, bump copyright.Jonathan Lange2010-07-301-2/+2
|\
| * Move most of utils module to compat and put iterate_tests in testsuite moduleMartin2010-06-181-1/+1
| * Revert no longer needed cosmetic changes to test_contentMartin2010-06-151-3/+3
| * Changes to make tests work on Python 3, and a short term hack to make output ...Martin2010-06-141-3/+3
* | Use testtools for running these tests.Jonathan Lange2010-07-291-7/+8
|/
* Lots of little coding cleanupsJonathan Lange2009-12-311-6/+6
* Review feedback.Robert Collins2009-12-071-10/+10
* Merge Benjamin Peterson's Python 3 support patch.Robert Collins2009-12-011-7/+8
|\
| * add a sample non-empty exc-infoBenjamin Peterson2009-11-291-6/+3
| * fix traceback Content and add a _b() fake literalBenjamin Peterson2009-11-291-4/+7
| * add a _u function to imitate unicode literals on python3Benjamin Peterson2009-11-291-3/+4
* | Make TracebackContent suitable for py3k porting.Robert Collins2009-11-301-1/+1
|/