~roadmr/canonical-identity-provider/fix-deprecation-warnings-1

« back to all changes in this revision

Viewing changes to src/webui/tests/test_views_devices.py

  • Committer: Tom Wardill
  • Date: 2018-02-14 14:05:59 UTC
  • mfrom: (1602 work)
  • mto: (1597.1.44 django-1.10)
  • mto: This revision was merged to the branch mainline in revision 1603.
  • Revision ID: tom.wardill@canonical.com-20180214140559-ow5txzwy46nopws2
Merge flake8 changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
from __future__ import unicode_literals
5
5
 
 
6
import re
 
7
from base64 import b16encode, b32encode
6
8
from urllib import quote as urlquote
7
 
from base64 import b16encode, b32encode
8
9
 
9
10
import mock
10
 
import re
11
 
 
12
11
from django.conf import settings
13
12
from django.core.urlresolvers import reverse
14
13
from django.db import transaction
30
29
)
31
30
 
32
31
from webui.decorators import ratelimit_extra
33
 
from webui.views.ui import TwoFactorView
34
32
from webui.views.devices import (
35
33
    DEVICE_DELETED,
36
34
    DEVICE_GENERATION_WARNING,
38
36
    get_unique_device_name_for_user,
39
37
    oath_modes,
40
38
)
 
39
from webui.views.ui import TwoFactorView
41
40
 
42
41
# This is the example OATH HOTP/TOTP key from RFC 4226:
43
42
# http://www.ietf.org/rfc/rfc4226.txt