Browse Source

total_seconds -> seconds for 2.6 and earlier

pull/330/head
Armin Ronacher 14 years ago
parent
commit
f01b654ac4
  1. 2
      flask/testsuite/config.py

2
flask/testsuite/config.py

@ -81,7 +81,7 @@ class ConfigTestCase(FlaskTestCase):
def test_session_lifetime(self):
app = flask.Flask(__name__)
app.config['PERMANENT_SESSION_LIFETIME'] = 42
self.assert_equal(app.permanent_session_lifetime.total_seconds(), 42)
self.assert_equal(app.permanent_session_lifetime.seconds, 42)
class InstanceTestCase(FlaskTestCase):

Loading…
Cancel
Save