summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThomas Waldmann <tw@waldmann-edv.de>2014-11-18 18:03:34 +0100
committerThomas Waldmann <tw@waldmann-edv.de>2014-11-18 18:03:34 +0100
commit5deb3f9e0f5b7cd81602f90f859c2ec0e4e41eec (patch)
tree841fc2cf644c7871b819603b4942ff2e62534edd /test
parentd51f762dddd959258de75c933a20dac083e57f8a (diff)
downloadonionshare-5deb3f9e0f5b7cd81602f90f859c2ec0e4e41eec.tar.gz
onionshare-5deb3f9e0f5b7cd81602f90f859c2ec0e4e41eec.zip
pep8: fix indentation to be a multiple of four
note: i used pycharm "reformat file", so there are other reformattings also
Diffstat (limited to 'test')
-rw-r--r--test/test_helpers.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/test/test_helpers.py b/test/test_helpers.py
index c4705142..cab2dd34 100644
--- a/test/test_helpers.py
+++ b/test/test_helpers.py
@@ -18,22 +18,24 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import tempfile
+
class MockSubprocess():
- def __init__(self):
- self.last_call = None
+ def __init__(self):
+ self.last_call = None
+
+ def call(self, args):
+ self.last_call = args
- def call(self, args):
- self.last_call = args
+ def last_call_args(self):
+ return self.last_call
- def last_call_args(self):
- return self.last_call
def write_tempfile(text):
tempdir = tempfile.mkdtemp()
path = tempdir + "/test-file.txt"
with open(path, "w") as f:
- f.write(text)
- f.close()
+ f.write(text)
+ f.close()
return path