python-modernize -f lib2to3.fixes.file . -w
This commit is contained in:
parent
d6a5cdf987
commit
379ec8ae63
10 changed files with 34 additions and 34 deletions
|
|
@ -71,7 +71,7 @@ class TestBuildNotification(unittest.TestCase):
|
|||
# task_info['id'], method, params, self.session, self.options
|
||||
task_id = 999
|
||||
fn = os.path.join(os.path.dirname(__file__), 'data/calls', 'build_notif_1', 'params.json')
|
||||
with file(fn) as fp:
|
||||
with open(fn) as fp:
|
||||
kwargs = json.load(fp)
|
||||
self.session = MyClientSession('https://koji.example.com/kojihub')
|
||||
self.session.load_calls('build_notif_1')
|
||||
|
|
@ -95,6 +95,6 @@ class TestBuildNotification(unittest.TestCase):
|
|||
self.assertEqual(from_addr, "koji@example.com")
|
||||
self.assertEqual(recipients, ["user@example.com"])
|
||||
fn = os.path.join(os.path.dirname(__file__), 'data/calls', 'build_notif_1', 'message.txt')
|
||||
with file(fn) as fp:
|
||||
with open(fn) as fp:
|
||||
msg_expect = fp.read()
|
||||
self.assertEqual(message, msg_expect)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue