|
|
@@ -105,16 +105,19 @@ class TestClient(object): |
|
|
|
client.http.post("/stream/list") |
|
|
|
client = nilmdb.client.Client(url = testurl) |
|
|
|
|
|
|
|
# Create three streams |
|
|
|
# Create four streams |
|
|
|
client.stream_create("/newton/prep", "float32_8") |
|
|
|
client.stream_create("/newton/raw", "uint16_6") |
|
|
|
client.stream_create("/newton/zzz/rawnotch", "uint16_9") |
|
|
|
client.stream_create("/newton/zzz/rawnotch2", "uint16_9") |
|
|
|
client.stream_create("/newton/zzz/rawnotch11", "uint16_9") |
|
|
|
|
|
|
|
# Verify we got 3 streams |
|
|
|
# Verify we got 4 streams in the right order |
|
|
|
eq_(client.stream_list(), [ ["/newton/prep", "float32_8"], |
|
|
|
["/newton/raw", "uint16_6"], |
|
|
|
["/newton/zzz/rawnotch", "uint16_9"] |
|
|
|
["/newton/zzz/rawnotch2", "uint16_9"], |
|
|
|
["/newton/zzz/rawnotch11", "uint16_9"] |
|
|
|
]) |
|
|
|
|
|
|
|
# Match just one type or one path |
|
|
|
eq_(client.stream_list(layout="uint16_6"), |
|
|
|
[ ["/newton/raw", "uint16_6"] ]) |
|
|
|