mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-29 03:15:06 +01:00
b34f699adb
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
21 lines
536 B
Python
21 lines
536 B
Python
# SPDX-License-Identifier: GPL-2.0
|
|
# pylint: disable=redefined-outer-name
|
|
import unittest
|
|
|
|
from podman_compose import parse_short_mount
|
|
|
|
|
|
class ParseShortMountTests(unittest.TestCase):
|
|
def test_multi_propagation(self):
|
|
self.assertEqual(
|
|
parse_short_mount("/foo/bar:/baz:U,Z", "/"),
|
|
{
|
|
"type": "bind",
|
|
"source": "/foo/bar",
|
|
"target": "/baz",
|
|
"bind": {
|
|
"propagation": "U,Z",
|
|
},
|
|
},
|
|
)
|