X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Ftest%2Fpybind%2Ftest_rbd.py;h=5e8e18d19043366503cda6b27e8fff1a96f29fa4;hb=31f18b776d001752a193a7cec8bb49033c1a904c;hp=b01b7390bfdf640a051254a8115808f3562c04d7;hpb=40152f1e46a80b3405e5558a442ee632198dfd24;p=ceph.git diff --git a/ceph/src/test/pybind/test_rbd.py b/ceph/src/test/pybind/test_rbd.py index b01b7390b..5e8e18d19 100644 --- a/ceph/src/test/pybind/test_rbd.py +++ b/ceph/src/test/pybind/test_rbd.py @@ -335,6 +335,11 @@ class TestImage(object): def test_block_name_prefix(self): assert_not_equal(b'', self.image.block_name_prefix()) + def test_create_timestamp(self): + timestamp = self.image.create_timestamp() + assert_not_equal(0, timestamp.year) + assert_not_equal(1970, timestamp.year) + def test_invalidate_cache(self): self.image.write(b'abc', 0) eq(b'abc', self.image.read(0, 3))