]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/pybind/test_rbd.py
update sources to v12.1.0
[ceph.git] / ceph / src / test / pybind / test_rbd.py
index b01b7390bfdf640a051254a8115808f3562c04d7..5e8e18d19043366503cda6b27e8fff1a96f29fa4 100644 (file)
@@ -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))