aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/resource/ut
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:44:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:49 +0300
commit718c552901d703c502ccbefdfc3c9028d608b947 (patch)
tree46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /library/python/resource/ut
parente9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff)
downloadydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/python/resource/ut')
-rw-r--r--library/python/resource/ut/lib/test_simple.py34
-rw-r--r--library/python/resource/ut/lib/ya.make2
-rw-r--r--library/python/resource/ut/py2/ya.make2
-rw-r--r--library/python/resource/ut/py3/ya.make4
4 files changed, 21 insertions, 21 deletions
diff --git a/library/python/resource/ut/lib/test_simple.py b/library/python/resource/ut/lib/test_simple.py
index 52f006ff919..4fd37473118 100644
--- a/library/python/resource/ut/lib/test_simple.py
+++ b/library/python/resource/ut/lib/test_simple.py
@@ -2,25 +2,25 @@ import six # noqa
import library.python.resource as rs
-text = b'na gorshke sidel korol\n'
-
+text = b'na gorshke sidel korol\n'
+
def test_find():
- assert rs.find('/qw.txt') == text
-
-
-def test_iter():
- assert set(rs.iterkeys()).issuperset({'/qw.txt', '/prefix/1.txt', '/prefix/2.txt'})
- assert set(rs.iterkeys(prefix='/prefix/')) == {'/prefix/1.txt', '/prefix/2.txt'}
- assert set(rs.iterkeys(prefix='/prefix/', strip_prefix=True)) == {'1.txt', '2.txt'}
- assert set(rs.iteritems(prefix='/prefix')) == {
- ('/prefix/1.txt', text),
- ('/prefix/2.txt', text),
- }
- assert set(rs.iteritems(prefix='/prefix', strip_prefix=True)) == {
- ('/1.txt', text),
- ('/2.txt', text),
- }
+ assert rs.find('/qw.txt') == text
+
+
+def test_iter():
+ assert set(rs.iterkeys()).issuperset({'/qw.txt', '/prefix/1.txt', '/prefix/2.txt'})
+ assert set(rs.iterkeys(prefix='/prefix/')) == {'/prefix/1.txt', '/prefix/2.txt'}
+ assert set(rs.iterkeys(prefix='/prefix/', strip_prefix=True)) == {'1.txt', '2.txt'}
+ assert set(rs.iteritems(prefix='/prefix')) == {
+ ('/prefix/1.txt', text),
+ ('/prefix/2.txt', text),
+ }
+ assert set(rs.iteritems(prefix='/prefix', strip_prefix=True)) == {
+ ('/1.txt', text),
+ ('/2.txt', text),
+ }
def test_resfs_files():
diff --git a/library/python/resource/ut/lib/ya.make b/library/python/resource/ut/lib/ya.make
index 693e388878c..5019adb9f7e 100644
--- a/library/python/resource/ut/lib/ya.make
+++ b/library/python/resource/ut/lib/ya.make
@@ -1,4 +1,4 @@
-PY23_LIBRARY()
+PY23_LIBRARY()
OWNER(pg)
diff --git a/library/python/resource/ut/py2/ya.make b/library/python/resource/ut/py2/ya.make
index 5085610fafa..52028b5f4ee 100644
--- a/library/python/resource/ut/py2/ya.make
+++ b/library/python/resource/ut/py2/ya.make
@@ -3,7 +3,7 @@ PY2TEST()
OWNER(pg)
PEERDIR(
- library/python/resource/ut/lib
+ library/python/resource/ut/lib
)
END()
diff --git a/library/python/resource/ut/py3/ya.make b/library/python/resource/ut/py3/ya.make
index 64eb2e83ce0..bcd5b141b56 100644
--- a/library/python/resource/ut/py3/ya.make
+++ b/library/python/resource/ut/py3/ya.make
@@ -1,9 +1,9 @@
PY3TEST()
-OWNER(pg)
+OWNER(pg)
PEERDIR(
- library/python/resource/ut/lib
+ library/python/resource/ut/lib
)
END()