parent
436e8cb760
commit
366bddd20a
2 changed files with 12 additions and 4 deletions
|
@ -564,6 +564,10 @@ def test_torrent_info(pre_oci_model):
|
|||
assert pre_oci_model.get_torrent_info(layers[0].blob) is None
|
||||
pre_oci_model.set_torrent_info(layers[0].blob, 2, 'foo')
|
||||
|
||||
# Set it again exactly, which should be a no-op.
|
||||
pre_oci_model.set_torrent_info(layers[0].blob, 2, 'foo')
|
||||
|
||||
# Check the information we've set.
|
||||
torrent_info = pre_oci_model.get_torrent_info(layers[0].blob)
|
||||
assert torrent_info is not None
|
||||
assert torrent_info.piece_length == 2
|
||||
|
|
Reference in a new issue