aboutsummaryrefslogtreecommitdiff
path: root/absl/flags/tests
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-02-12 12:31:03 -0800
committerCopybara-Service <copybara-worker@google.com>2021-02-12 12:31:30 -0800
commit73b4b0f5e3e52caa7c026c3742e4abd6a52dffc8 (patch)
treea707ff59c9e54c7b75270c717fecd8d280013ee9 /absl/flags/tests
parent2444faee6d820c024c26380f60aa5e12fdf4b3a4 (diff)
downloadabsl-py-73b4b0f5e3e52caa7c026c3742e4abd6a52dffc8.tar.gz
Fix CsvListSerializer to honor its list_sep parameter.
PiperOrigin-RevId: 357245847 Change-Id: I7637199f61f23e78646720ad406f539c89962fe3
Diffstat (limited to 'absl/flags/tests')
-rw-r--r--absl/flags/tests/_argument_parser_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/absl/flags/tests/_argument_parser_test.py b/absl/flags/tests/_argument_parser_test.py
index e62c903..4074669 100644
--- a/absl/flags/tests/_argument_parser_test.py
+++ b/absl/flags/tests/_argument_parser_test.py
@@ -190,6 +190,13 @@ class EnumClassParserTest(parameterized.TestCase):
self.assertEqual(value, parser.parse(expected))
+class SerializerTest(absltest.TestCase):
+
+ def test_csv_serializer(self):
+ serializer = _argument_parser.CsvListSerializer('+')
+ self.assertEqual(serializer.serialize(['foo', 'bar']), 'foo+bar')
+
+
class HelperFunctionsTest(absltest.TestCase):
def test_is_integer_type(self):