File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -204,11 +204,11 @@ def test_FromJSONEmptyObject(self):
204204 attachment = Attachment .from_json ('{}' )
205205 self .assertIsNone (attachment .usage_type )
206206 self .assertIsNone (attachment .display )
207- self .assertIsNone ( attachment . description )
207+ self .assertFalse ( hasattr ( attachment , '_description' ) )
208208 self .assertIsNone (attachment .content_type )
209209 self .assertIsNone (attachment .length )
210210 self .assertIsNone (attachment .sha2 )
211- self .assertIsNone ( attachment . fileurl )
211+ self .assertFalse ( hasattr ( attachment , '_fileurl' ) )
212212
213213 def test_FromJSONExceptionEmpty (self ):
214214 with self .assertRaises (ValueError ):
@@ -221,6 +221,8 @@ def test_FromJSONusage_type(self):
221221 self .assertIsNone (attachment .content_type )
222222 self .assertIsNone (attachment .length )
223223 self .assertIsNone (attachment .sha2 )
224+ self .assertFalse (hasattr (attachment , '_description' ))
225+ self .assertFalse (hasattr (attachment , '_fileurl' ))
224226
225227 def test_fromJSONcontent_type (self ):
226228 attachment = Attachment .from_json ('{"usage_type":"test", "content_type":"test"}' )
You can’t perform that action at this time.
0 commit comments