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

« back to all changes in this revision

Viewing changes to tests/unittests/test_builtin_handlers.py

Enable flake8 and fix a large amount of reported issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
                      'test.conf', 'blah', freq)
41
41
        h.handle_part('', handlers.CONTENT_END,
42
42
                      None, None, None)
43
 
        self.assertEquals(0, len(os.listdir(up_root)))
 
43
        self.assertEqual(0, len(os.listdir(up_root)))
44
44
 
45
45
    def test_upstart_frequency_single(self):
46
46
        # files should be written out when frequency is ! per-instance
67
67
            h.handle_part('', handlers.CONTENT_END,
68
68
                          None, None, None)
69
69
 
70
 
            self.assertEquals(len(os.listdir('/etc/upstart')), 1)
 
70
            self.assertEqual(len(os.listdir('/etc/upstart')), 1)
71
71
 
72
72
        mockobj.assert_called_once_with(
73
73
            ['initctl', 'reload-configuration'], capture=False)