Skip to content

Commit aeed0b3

Browse files
committed
test: get_default
1 parent 46eef6c commit aeed0b3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/test_object.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,15 @@ def test_get(): # type: () -> None
9696
assert album.get('foo') == 'bar'
9797

9898

99-
def test_get_deafult(): # type: () -> None
99+
def test_get_default(): # type: () -> None
100100
album = Album()
101101
assert album.get('foo', 'bar') == 'bar'
102+
assert album.get('foo', default='bar') == 'bar'
103+
# for backward compatibility
104+
assert album.get('foo', deafult='bar') == 'bar'
105+
assert album.get('foo', 'bar', deafult='foobar') == 'bar'
106+
assert album.get('foo', deafult='foobar', default='bar') == 'bar'
107+
102108

103109

104110
def test_unset(): # type: () -> None

0 commit comments

Comments
 (0)