mirror of
https://github.com/jazzband/django-downloadview.git
synced 2026-03-16 22:40:25 +00:00
Refs #104 - Assert timestamp is passed to was_modified_since().
This commit is contained in:
parent
bdf8e6e368
commit
3a3d3ebb9f
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
# coding=utf-8
|
||||
"""Tests around :mod:`django_downloadview.views`."""
|
||||
import calendar
|
||||
import os
|
||||
import unittest
|
||||
from datetime import datetime
|
||||
|
|
@ -104,7 +105,7 @@ class DownloadMixinTestCase(unittest.TestCase):
|
|||
mock.sentinel.was_modified)
|
||||
was_modified_since_mock.assert_called_once_with(
|
||||
mock.sentinel.since,
|
||||
mock.sentinel.modified_time,
|
||||
calendar.timegm(file_wrapper.modified_time.utctimetuple()),
|
||||
mock.sentinel.size)
|
||||
|
||||
def test_was_modified_since_fallback(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue