Skip to content

Commit

Permalink
rename variables for consistency
Browse files Browse the repository at this point in the history
Signed-off-by: Ianto Lin Xi <iantolinxi@gmail.com>
  • Loading branch information
intrepidlemon committed Feb 22, 2016
1 parent 9cb4a45 commit 7ae471d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/integration/container_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,9 +982,9 @@ def test_run_container_stdin_tty(self):

self.client.start(ident)

stdout = self.client.attach(ident, stdin=line, logs=True, stream=True)
data = self.client.attach(ident, stdin=line, logs=True, stream=True)

output = "".join([next(stdout).decode("utf-8") for _ in
output = "".join([next(data).decode("utf-8") for _ in
range(len(line))])

self.assertEqual(output, line)
Expand All @@ -999,8 +999,8 @@ def test_run_container_stdin_string(self):

self.client.start(ident)

stdio = self.client.attach(ident, stdin=line, logs=True, stream=True)
output = next(stdio).decode("utf-8")
data = self.client.attach(ident, stdin=line, logs=True, stream=True)
output = next(data).decode("utf-8")
self.assertEqual(output, line)

def test_run_container_stdin_bytes(self):
Expand All @@ -1013,8 +1013,8 @@ def test_run_container_stdin_bytes(self):

self.client.start(ident)

stdio = self.client.attach(ident, stdin=line, logs=True, stream=True)
output = next(stdio)
data = self.client.attach(ident, stdin=line, logs=True, stream=True)
output = next(data)
self.assertEqual(output, line)


Expand Down

0 comments on commit 7ae471d

Please sign in to comment.