@@ -61,14 +61,14 @@ def testSupportedFormatChecking(self):
61
61
This test is run only on local files to avoid downloading and removing a new file.
62
62
"""
63
63
64
- for format , location in self .local .items ():
65
- if format != 'unsupported' :
64
+ for file_format , location in self .local .items ():
65
+ if file_format != 'unsupported' :
66
66
# Tests the behavior after receiving supported file types with and without the 'file://' prefix
67
- self .assertEquals (wf_info (location ), self .expected [format ])
68
- self .assertEquals (wf_info (location [7 :]), self .expected [format ])
67
+ self .assertEquals (wf_info (location ), self .expected [file_format ])
68
+ self .assertEquals (wf_info (location [7 :]), self .expected [file_format ])
69
69
70
70
else :
71
- # Tests behavior after recieveing a non supported file type.
71
+ # Tests behavior after receiving a non supported file type.
72
72
with self .assertRaises (TypeError ):
73
73
wf_info (location )
74
74
@@ -79,20 +79,20 @@ def testFileLocationChecking(self):
79
79
This test needs to be run on remote files to test the location checking functionality of wf_info().
80
80
"""
81
81
82
- for format , location in self .remote .items ():
83
- if format == 'unsupported' :
82
+ for file_format , location in self .remote .items ():
83
+ if file_format == 'unsupported' :
84
84
# Tests behavior after receiving a file hosted at an unsupported location.
85
85
with self .assertRaises (NotImplementedError ):
86
86
wf_info (location )
87
87
88
- elif format == 'unreachable' :
88
+ elif file_format == 'unreachable' :
89
89
# Tests behavior after receiving a non-existent file.
90
90
with self .assertRaises (IOError ):
91
91
wf_info (location )
92
92
93
93
else :
94
- self .assertEquals (wf_info (location ), self .expected [format ])
95
- self .assertFalse (os .path .isfile (os .path .join (os .getcwd (), 'fetchedFromRemote.' + format )))
94
+ self .assertEquals (wf_info (location ), self .expected [file_format ])
95
+ self .assertFalse (os .path .isfile (os .path .join (os .getcwd (), 'fetchedFromRemote.' + file_format )))
96
96
97
97
98
98
if __name__ == '__main__' :
0 commit comments