Browse Source

Improve test coverage

tags/nilmdb-2.0.0
Jim Paris 2 years ago
parent
commit
02ee18c410
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      tests/test_client.py

+ 4
- 0
tests/test_client.py View File

@@ -6,6 +6,7 @@ import nilmdb.client
from nilmdb.utils.printf import *
from nilmdb.utils import timestamper
from nilmdb.client import ClientError, ServerError
from nilmdb.utils.sort import sort_human
import datetime_tz

from nose.plugins.skip import SkipTest
@@ -111,6 +112,9 @@ class TestClient(object):
client.stream_create("/newton/zzz/rawnotch2", "uint16_9")
client.stream_create("/newton/zzz/rawnotch11", "uint16_9")

# Test sort_human (used by stream_list)
eq_(sort_human(["/s/10", "/s/2"]), ["/s/2", "/s/10"])

# Verify we got 4 streams in the right order
eq_(client.stream_list(), [ ["/newton/prep", "float32_8"],
["/newton/raw", "uint16_6"],


Loading…
Cancel
Save