X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9bf790498c20c9f8ab9bffbf9c8e5311864bd91e..b01c4372354d84bbc712d2793b07a8d5d5276b98:/sdk/python/tests/test_keep_locator.py diff --git a/sdk/python/tests/test_keep_locator.py b/sdk/python/tests/test_keep_locator.py index 9b9c4b6ab3..e47d64d337 100644 --- a/sdk/python/tests/test_keep_locator.py +++ b/sdk/python/tests/test_keep_locator.py @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + from builtins import next from builtins import zip from builtins import str @@ -63,6 +67,11 @@ class ArvadosKeepLocatorTest(unittest.TestCase): locator = '+'.join((base,) + loc_hints) self.assertEqual(locator, str(KeepLocator(locator))) + def test_str_type(self): + base = next(self.base_locators(1)) + locator = KeepLocator(base) + self.assertEqual(type(''), type(locator.__str__())) + def test_expiry_passed(self): base = next(self.base_locators(1)) signature = next(self.signatures(1))