@@ -101,13 +101,15 @@ def test_to_python_type(self, mock_context):
101101
102102 def test_to_python_id_value (self , mock_context ):
103103 cont = ld_container ([{}], context = [mock_context ])
104- assert cont ._to_python ("http://spam.eggs/ham" , [{"@id" : "http://spam.eggs/spam" }]) == "http://spam.eggs/spam"
105- assert cont ._to_python ("http://spam.eggs/ham" , [{"@id" : "http://spam.eggs/identifier" }]) == "http://spam.eggs/identifier"
104+ assert cont ._to_python ("http://spam.eggs/ham" ,
105+ [{"@id" : "http://spam.eggs/spam" }]) == "http://spam.eggs/spam"
106+ assert cont ._to_python ("http://spam.eggs/ham" ,
107+ [{"@id" : "http://spam.eggs/identifier" }]) == "http://spam.eggs/identifier"
106108
107109 def test_to_python_basic_value (self , mock_context ):
108110 cont = ld_container ([{}], context = [mock_context ])
109111 assert cont ._to_python ("http://soam.eggs/spam" , [{"@value" : "bacon" }]) == 'bacon'
110- assert cont ._to_python ("http://spam.eggs/spam" , [{"@value" : True }]) == True
112+ assert cont ._to_python ("http://spam.eggs/spam" , [{"@value" : True }]) is True
111113 assert cont ._to_python ("http://spam.eggs/spam" , [{"@value" : 123 }]) == 123
112114
113115 def test_to_python_datetime_value (self , mock_context ):
@@ -148,6 +150,6 @@ def test_to_expanded_basic_value(self, mock_context):
148150
149151 def test_to_expanded_datetime_value (self , mock_context ):
150152 cont = ld_container ([{}], context = [mock_context ])
151- assert cont ._to_expanded_json ("eggs" , datetime (2022 , 2 ,22 )) == [
153+ assert cont ._to_expanded_json ("eggs" , datetime (2022 , 2 , 22 )) == [
152154 {"@value" : "2022-02-22T00:00:00" , "@type" : "http://schema.org/DateTime" }
153155 ]
0 commit comments