File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -294,6 +294,47 @@ def test_city_full(self):
294294
295295 def test_unknown_keys (self ):
296296 model = geoip2 .models .City ({
297+ 'city' : {
298+ 'invalid' : 0
299+ },
300+ 'continent' : {
301+ 'invalid' : 0 ,
302+ 'names' : {
303+ 'invalid' : 0
304+ },
305+ },
306+ 'country' : {
307+ 'invalid' : 0 ,
308+ 'names' : {
309+ 'invalid' : 0
310+ },
311+ },
312+ 'location' : {
313+ 'invalid' : 0
314+ },
315+ 'postal' : {
316+ 'invalid' : 0
317+ },
318+ 'subdivisions' : [
319+ {
320+ 'invalid' : 0 ,
321+ 'names' : {
322+ 'invalid' : 0 ,
323+ },
324+ },
325+ ],
326+ 'registered_country' : {
327+ 'invalid' : 0 ,
328+ 'names' : {
329+ 'invalid' : 0 ,
330+ },
331+ },
332+ 'represented_country' : {
333+ 'invalid' : 0 ,
334+ 'names' : {
335+ 'invalid' : 0 ,
336+ },
337+ },
297338 'traits' : {
298339 'ip_address' : '1.2.3.4' ,
299340 'invalid' : 'blah'
You can’t perform that action at this time.
0 commit comments