@@ -88,7 +88,7 @@ def test_get_mapping(self):
8888
8989 def test_get_value_from_instance (self ):
9090 field = ObjectField (attr = 'person' , properties = {
91- 'first_name' : TextField (analyzier = 'foo' ),
91+ 'first_name' : TextField (analyzer = 'foo' ),
9292 'last_name' : TextField ()
9393 })
9494
@@ -102,47 +102,47 @@ def test_get_value_from_instance(self):
102102
103103 def test_get_value_from_instance_with_inner_objectfield (self ):
104104 field = ObjectField (attr = 'person' , properties = {
105- 'first_name' : TextField (analyzier = 'foo' ),
105+ 'first_name' : TextField (analyzer = 'foo' ),
106106 'last_name' : TextField (),
107- 'aditional ' : ObjectField (properties = {
107+ 'additional ' : ObjectField (properties = {
108108 'age' : IntegerField ()
109109 })
110110 })
111111
112112 instance = NonCallableMock (person = NonCallableMock (
113113 first_name = "foo" , last_name = "bar" ,
114- aditional = NonCallableMock (age = 12 )
114+ additional = NonCallableMock (age = 12 )
115115 ))
116116
117117 self .assertEqual (field .get_value_from_instance (instance ), {
118118 'first_name' : "foo" ,
119119 'last_name' : "bar" ,
120- 'aditional ' : {'age' : 12 }
120+ 'additional ' : {'age' : 12 }
121121 })
122122
123123 def test_get_value_from_instance_with_none_inner_objectfield (self ):
124124 field = ObjectField (attr = 'person' , properties = {
125- 'first_name' : TextField (analyzier = 'foo' ),
125+ 'first_name' : TextField (analyzer = 'foo' ),
126126 'last_name' : TextField (),
127- 'aditional ' : ObjectField (properties = {
127+ 'additional ' : ObjectField (properties = {
128128 'age' : IntegerField ()
129129 })
130130 })
131131
132132 instance = NonCallableMock (person = NonCallableMock (
133133 first_name = "foo" , last_name = "bar" ,
134- aditional = None
134+ additional = None
135135 ))
136136
137137 self .assertEqual (field .get_value_from_instance (instance ), {
138138 'first_name' : "foo" ,
139139 'last_name' : "bar" ,
140- 'aditional ' : {}
140+ 'additional ' : {}
141141 })
142142
143143 def test_get_value_from_iterable (self ):
144144 field = ObjectField (attr = 'person' , properties = {
145- 'first_name' : TextField (analyzier = 'foo' ),
145+ 'first_name' : TextField (analyzer = 'foo' ),
146146 'last_name' : TextField ()
147147 })
148148
0 commit comments