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

« back to all changes in this revision

Viewing changes to tests/unittests/test_datasource/test_azure_helper.py

Enable flake8 and fix a large amount of reported issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import os
2
2
 
3
3
from cloudinit.sources.helpers import azure as azure_helper
 
4
 
4
5
from ..helpers import TestCase
5
6
 
6
7
try:
70
71
 
71
72
    def test_missing_special_azure_line(self):
72
73
        self.load_file.return_value = ''
73
 
        self.assertRaises(Exception,
 
74
        self.assertRaises(ValueError,
74
75
                          azure_helper.WALinuxAgentShim.find_endpoint)
75
76
 
76
77
    @staticmethod