Files
wget/testenv/conf/local_files.py
Zihang Chen ecd69778bf Refactor mainly the test cases classes
Files that were refactored are WgetTest.py, some conf
scripts and some test case file. The purpose of the
refactoring of the test cases classes is to provide
a better interface for the incoming FTP test
counterpart.
2014-06-07 16:34:39 +02:00

13 lines
267 B
Python

from conf import hook
@hook()
class LocalFiles:
def __init__(self, local_files):
self.local_files = local_files
def __call__(self, _):
for f in self.local_files:
with open(f.name, 'w') as fp:
fp.write(f.content)