File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ def test_array_init(self):
38
38
eq ((10 ,), a .chunks )
39
39
eq ('' , a .path )
40
40
assert_is_none (a .name )
41
+ assert_is_none (a .basename )
41
42
assert_is (store , a .store )
42
43
43
44
# initialize at path
@@ -49,6 +50,7 @@ def test_array_init(self):
49
50
eq ((10 ,), a .chunks )
50
51
eq ('foo/bar' , a .path )
51
52
eq ('/foo/bar' , a .name )
53
+ eq ('bar' , a .basename )
52
54
assert_is (store , a .store )
53
55
54
56
# store not initialized
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ def test_group_init_1(self):
64
64
assert_false (g .read_only )
65
65
eq ('' , g .path )
66
66
eq ('/' , g .name )
67
+ eq ('' , g .basename
7369
)
67
68
assert_is_instance (g .attrs , Attributes )
68
69
assert_is_instance (g .info , InfoReporter )
69
70
assert_is_instance (repr (g .info ), str )
@@ -77,6 +78,7 @@ def test_group_init_2(self):
77
78
assert_true (g .read_only )
78
79
eq ('foo/bar' , g .path )
79
80
eq ('/foo/bar' , g .name )
81
+ eq ('bar' , g .basename )
80
82
assert_is_instance (g .attrs , Attributes )
81
83
82
84
def test_group_init_errors_1 (self ):
You can’t perform that action at this time.
0 commit comments