~andreserl/maas/python3_qa_lab_tests

« back to all changes in this revision

Viewing changes to maas-integration.py

  • Committer: jtv at canonical
  • Date: 2014-09-25 06:14:18 UTC
  • mto: This revision was merged to the branch mainline in revision 263.
  • Revision ID: jtv@canonical.com-20140925061418-3oxfnp8rffbahy22
Format imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import errno
1
2
import os
 
3
import pipes
 
4
import platform
2
5
from shutil import copytree
3
 
from simplejson import loads
4
6
import sys
 
7
from textwrap import dedent
5
8
from time import sleep
6
 
from testtools import TestCase
7
 
from testtools.matchers import Contains, ContainsAll
8
 
from testtools.content import Content, text_content
9
 
from testtools.content_type import UTF8_TEXT
10
9
import unittest
11
 
from unittest import skipIf, SkipTest
12
 
import yaml
13
 
import platform
 
10
from unittest import (
 
11
    skipIf,
 
12
    SkipTest,
 
13
    )
14
14
import urllib2
15
15
from urlparse import urlparse
16
 
import pipes
17
 
import errno
18
 
import zmq
19
 
from netaddr import IPAddress, IPRange
20
 
from textwrap import dedent
21
16
 
 
17
from netaddr import (
 
18
    IPAddress,
 
19
    IPRange,
 
20
    )
 
21
from simplejson import loads
 
22
from testtools import TestCase
 
23
from testtools.content import (
 
24
    Content,
 
25
    text_content,
 
26
    )
 
27
from testtools.content_type import UTF8_TEXT
 
28
from testtools.matchers import (
 
29
    Contains,
 
30
    ContainsAll,
 
31
    )
22
32
from utils import (
23
33
    assertCommandReturnCode,
24
34
    assertStartedUpstartService,
34
44
    SQUID_DEB_PROXY_URL,
35
45
    timeout,
36
46
    )
 
47
import yaml
 
48
import zmq
 
49
 
37
50
 
38
51
sys.path.insert(0, "/usr/share/maas")
39
52
os.environ['DJANGO_SETTINGS_MODULE'] = 'maas.settings'