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

« back to all changes in this revision

Viewing changes to src/identityprovider/tests/test_command_cleanup.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:
1
1
import sys
2
 
import openid.store.nonce
3
 
 
4
2
from datetime import timedelta
 
3
from StringIO import StringIO
5
4
from time import time
6
 
from StringIO import StringIO
7
 
from mock import Mock, patch
8
5
 
 
6
import openid.store.nonce
9
7
from django.contrib.sessions.models import Session
10
8
from django.core.management import call_command
11
9
from django.utils.timezone import now
 
10
from mock import Mock, patch
12
11
 
13
12
from identityprovider.models import (
14
13
    Account,
15
14
    AccountPassword,
16
15
    EmailAddress,
 
16
    OpenIDAssociation,
17
17
    OpenIDNonce,
18
 
    OpenIDAssociation,
19
18
)
20
19
from identityprovider.tests.utils import (
21
20
    ConcurrentCommandMixin,