|
|
@@ -194,9 +194,11 @@ class TestCmdline(object): |
|
|
|
def test_02_info(self): |
|
|
|
self.ok("info") |
|
|
|
self.contain("Server URL: http://localhost:12380/") |
|
|
|
self.contain("Client version: " + nilmdb.__version__) |
|
|
|
self.contain("Server version: " + test_server.version) |
|
|
|
self.contain("Server database path") |
|
|
|
self.contain("Server database size") |
|
|
|
self.contain("Server database free space") |
|
|
|
|
|
|
|
def test_03_createlist(self): |
|
|
|
# Basic stream tests, like those in test_client. |
|
|
@@ -765,7 +767,7 @@ class TestCmdline(object): |
|
|
|
"tests/data/prep-20120323T1000") |
|
|
|
|
|
|
|
# Should take up about 2.8 MB here (including directory entries) |
|
|
|
du_before = nilmdb.utils.diskusage.du_bytes(testdb) |
|
|
|
du_before = nilmdb.utils.diskusage.du(testdb) |
|
|
|
|
|
|
|
# Make sure we have the data we expect |
|
|
|
self.ok("list --detail") |
|
|
@@ -815,7 +817,7 @@ class TestCmdline(object): |
|
|
|
|
|
|
|
# We have 1/8 of the data that we had before, so the file size |
|
|
|
# should have dropped below 1/4 of what it used to be |
|
|
|
du_after = nilmdb.utils.diskusage.du_bytes(testdb) |
|
|
|
du_after = nilmdb.utils.diskusage.du(testdb) |
|
|
|
lt_(du_after, (du_before / 4)) |
|
|
|
|
|
|
|
# Remove anything that came from the 10:02 data file |
|
|
|