~cloud-init-dev/cloud-init/trunk

« back to all changes in this revision

Viewing changes to tests/unittests/test_handler/test_handler_yum_add_repo.py

Enable flake8 and fix a large amount of reported issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from cloudinit.config import cc_yum_add_repo
1
2
from cloudinit import util
2
3
 
3
 
from cloudinit.config import cc_yum_add_repo
4
 
 
5
4
from .. import helpers
6
5
 
 
6
import configobj
 
7
import logging
7
8
import shutil
 
9
from six import BytesIO
8
10
import tempfile
9
 
import logging
10
 
 
11
 
from six import BytesIO
12
 
 
13
 
import configobj
14
11
 
15
12
LOG = logging.getLogger(__name__)
16
13
 
68
65
                'gpgcheck': '1',
69
66
            }
70
67
        }
71
 
        self.assertEquals(expected, dict(contents))
 
68
        self.assertEqual(expected, dict(contents))