Browse Source

Fix long lines

tags/nilmrun-1.3.3^0
Jim Paris 9 years ago
parent
commit
38c3e67cf9
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      tests/test_nilmrun.py

+ 6
- 3
tests/test_nilmrun.py View File

@@ -352,8 +352,10 @@ class TestClient(object):
# start some processes
a = client.post("run/command", { "argv": ["sleep","60"] } )
b = client.post("run/command", { "argv": ["sh","-c","sleep 2;true"] } )
c = client.post("run/command", { "argv": ["sh","-c","dd if=/dev/zero of=/dev/null;true"] } )
d = client.post("run/command", { "argv": ["dd", "if=/dev/zero", "of=/dev/null" ] } )
c = client.post("run/command", { "argv": [
"sh","-c","dd if=/dev/zero of=/dev/null;true"] } )
d = client.post("run/command", { "argv": [
"dd", "if=/dev/zero", "of=/dev/null" ] } )

info = client.get("process/info")
eq_(info["pids"][a]["procs"], 1)
@@ -381,7 +383,8 @@ class TestClient(object):
client = HTTPClient(baseurl = testurl, post_json = True)
eq_(client.get("process/list"), [])
def verify(cmd, result):
pid = client.post("run/command", { "argv": [ "/bin/bash", "-c", cmd ] })
pid = client.post("run/command", { "argv": [
"/bin/bash", "-c", cmd ] })
eq_(client.get("process/list"), [pid])
status = self.wait_end(client, pid)
eq_(result, status["log"])


Loading…
Cancel
Save