8000 add test to assert label values that contain equal signs · localstack/localstack@8f2af0e · GitHub
[go: up one dir, main page]

Skip to content

Commit 8f2af0e

Browse files
committed
add test to assert label values that contain equal signs
1 parent 0bce574 commit 8f2af0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/unit/test_dockerclient.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ def test_argument_parsing():
130130
argument_string = r'--label foo1="bar" --label foo2="baz"' # test with multiple labels
131131
flags = Util.parse_additional_flags(argument_string)
132132
assert flags.labels == {"foo1": "bar", "foo2": "baz"}
133+
argument_string = r"--label foo=bar=baz" # assert label values that contain equal signs
134+
flags = Util.parse_additional_flags(argument_string)
135+
assert flags.labels == {"foo": "bar=baz"}
133136
argument_string = r'--label ""' # assert that we gracefully handle invalid labels
134137
flags = Util.parse_additional_flags(argument_string)
135138
assert flags.labels == {}

0 commit comments

Comments
 (0)
0