Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Apr 1, 2019
1 parent 61586d6 commit 0d54faa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage/tests/unit/test__signing.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def test_w_max_age_int(self):
when = dummy_utcnow + delta
expiration = _utc_seconds(when)
self.assertEqual(result, expiration)
utcnow.assert_called_once_with()

def test_w_expiration_int(self):
self.assertEqual(self._call_fut(123, None), 123)
Expand Down Expand Up @@ -181,7 +182,8 @@ def test_w_expiration_int_gt_seven_days(self):

with patch as utcnow:
with self.assertRaises(ValueError):
result = self._call_fut(expiration_seconds, None)
self._call_fut(expiration_seconds, None)
utcnow.assert_called_once_with()

def test_w_expiration_int(self):
dummy_utcnow = datetime.datetime(2004, 8, 19, 0, 0, 0, 0)
Expand Down

0 comments on commit 0d54faa

Please sign in to comment.