~harlowja/cloud-init/cloud-init-net-refactor

« back to all changes in this revision

Viewing changes to tests/unittests/test_runs/test_merge_run.py

Enable flake8 and fix a large amount of reported issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
                              args=[PER_INSTANCE],
43
43
                              freq=PER_INSTANCE)
44
44
        mirrors = initer.distro.get_option('package_mirrors')
45
 
        self.assertEquals(1, len(mirrors))
 
45
        self.assertEqual(1, len(mirrors))
46
46
        mirror = mirrors[0]
47
 
        self.assertEquals(mirror['arches'], ['i386', 'amd64', 'blah'])
 
47
        self.assertEqual(mirror['arches'], ['i386', 'amd64', 'blah'])
48
48
        mods = stages.Modules(initer)
49
49
        (which_ran, failures) = mods.run_section('cloud_init_modules')
50
50
        self.assertTrue(len(failures) == 0)
51
51
        self.assertTrue(os.path.exists('/etc/blah.ini'))
52
52
        self.assertIn('write-files', which_ran)
53
53
        contents = util.load_file('/etc/blah.ini')
54
 
        self.assertEquals(contents, 'blah')
 
54
        self.assertEqual(contents, 'blah')