projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
15531: Test federation migrate script WIP
[arvados.git]
/
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 2a90316e4cdf8500d2549bf34acb04c657112ed1..e47d64d3372028ee2a7ecbfdba1a543fb993f91f 100644
(file)
--- a/
sdk/python/tests/test_keep_locator.py
+++ b/
sdk/python/tests/test_keep_locator.py
@@
-1,5
+1,6
@@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+# 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 next
from builtins import zip
@@
-66,6
+67,11
@@
class ArvadosKeepLocatorTest(unittest.TestCase):
locator = '+'.join((base,) + loc_hints)
self.assertEqual(locator, str(KeepLocator(locator)))
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))
def test_expiry_passed(self):
base = next(self.base_locators(1))
signature = next(self.signatures(1))