We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46eef6c commit aeed0b3Copy full SHA for aeed0b3
1 file changed
tests/test_object.py
@@ -96,9 +96,15 @@ def test_get(): # type: () -> None
96
assert album.get('foo') == 'bar'
97
98
99
-def test_get_deafult(): # type: () -> None
+def test_get_default(): # type: () -> None
100
album = Album()
101
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
+
108
109
110
def test_unset(): # type: () -> None
0 commit comments