jazzband / django-downloadview

Serve files with Django.
https://django-downloadview.readthedocs.io
Other
380 stars 58 forks source link

Refs #104 - Convert datetime to unix timestamp #107

Closed zerc closed 9 years ago

zerc commented 9 years ago

Im not sure about unittests for this fix.

First i thinking about updating DownloadMixinTestCase.test_was_modified_since_django: https://github.com/benoitbryon/django-downloadview/blob/master/tests/views.py#L81-L106

Just turn off mocking for was_modified_since

But may be it is not good idea because we start testing around of implementation of django's was_modified_since function

What do you think?

Sorry for closed PR. Fixed broken tests