def METHOD_NAME(self, expected_minutes, session):
    self.assertEqual(expected_minutes, session.get('secure_session_timeout'))
    delta = session.get_expiry_date() - datetime.utcnow()
    diff_in_minutes = delta.days * 24 * 60 + delta.seconds / 60
    self.assertEqual(expected_minutes, round(diff_in_minutes))