Browse Source

Test --no-decim

tags/nilmdb-1.9.7^0
Jim Paris 10 years ago
parent
commit
f5276e9fc8
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      tests/test_cmdline.py

+ 12
- 1
tests/test_cmdline.py View File

@@ -290,6 +290,7 @@ class TestCmdline(object):
self.ok("create /newton/zzz/rawnotch uint16_9")
self.ok("create /newton/prep float32_8")
self.ok("create /newton/raw uint16_6")
self.ok("create /newton/raw~decim-1234 uint16_6")

# Create a stream that already exists
self.fail("create /newton/raw uint16_6")
@@ -305,13 +306,23 @@ class TestCmdline(object):
self.fail("create /newton/zzz float32_8")
self.contain("subdirs of this path already exist")

# Verify we got those 3 streams and they're returned in
# Verify we got those 4 streams and they're returned in
# alphabetical order.
self.ok("list -l")
self.match("/newton/prep float32_8\n"
"/newton/raw uint16_6\n"
"/newton/raw~decim-1234 uint16_6\n"
"/newton/zzz/rawnotch uint16_9\n")

# No decimated streams if -n specified
self.ok("list -n -l")
self.match("/newton/prep float32_8\n"
"/newton/raw uint16_6\n"
"/newton/zzz/rawnotch uint16_9\n")

# Delete that decimated stream
self.ok("destroy /newton/raw~decim-1234")

# Match just one type or one path. Also check
# that --path is optional
self.ok("list --layout /newton/raw")


Loading…
Cancel
Save