Commit graph

11 commits

Author SHA1 Message Date
René Leonhardt
5e4ae2fdc9 Changed assertCalledOnceWith() to assert_called_once_with()
When I change assertCalledOnceWith() to assert_called_once_with(), make test succeeds but shows another failure:
```
AssertionError: Expected call: mock(sentinel.size, sentinel.modified_time)
Actual call: mock(sentinel.since, sentinel.modified_time, sentinel.size)
```
After changing the call accordingly, all 59 tests succeed.
2015-07-14 14:53:14 +02:00
Benoît Bryon
5fa0a6caea Psycho-rebased branch 87-double-quoted-filename on top of master 2015-06-13 00:57:44 +02:00
Benoît Bryon
ec96afda11 Refs #98 - Added __init__ script in tests/ folder. 2015-06-12 16:52:33 +02:00
Benoît Bryon
d122c68455 Refs #97 - Splitted StringIteratorIO into TextIteratorIO and BytesIteratorIO. StringIteratorIO remains for backward compatibility. 2015-06-12 16:47:46 +02:00
Benoît Bryon
c54131db6e Refs #98 - Moved tests outside django-downloadview package, i.e. in tests/ folder at project root. 2015-06-12 15:42:50 +02:00
Benoît Bryon
546bdc2461 Test of README build to HTML is now done with 'rst2html' command via tox. 2014-02-25 00:43:09 +01:00
Benoît Bryon
2e5d778651 Renamed README to README.rst. Improved setup.py readability. 2013-10-28 18:15:09 +01:00
Benoît Bryon
d21d07c1e7 Refs #26 - Fixed assertIs() compatibility for Python<2.7 2013-05-28 15:21:55 +02:00
Benoît Bryon
121fb4d391 Refs #26 - Do not compute size of virtual files, unless file wrapper implements was_modified_since(). 2013-05-28 15:17:01 +02:00
Benoît Bryon
44f1ca3be3 Refs #35 - Fixed conversion of README from reStructuredText to HTML. 2013-05-28 14:40:46 +02:00
Benoît Bryon
31c0a0f4b9 Refs #34 - Introduced unit tests for DownloadMixin.was_modified_since(). Refactored DownloadMixin: easier to test, better docstrings. 2013-05-14 00:25:30 +02:00