Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
testing.checkLayersEqual, assert field names
  • Loading branch information
m-kuhn committed May 2, 2018
1 parent 291c039 commit d9bdedf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/testing/__init__.py
Expand Up @@ -153,6 +153,12 @@ def sort_by_pk_or_fid(f):
if 'skip' in cmp:
continue

if use_asserts:
_TestCase.assertIn(
self,
field_expected.name(),
feats[1].fields().names())

attr_result = feats[1][field_expected.name()]
field_result = [fld for fld in layer_expected.fields().toList() if fld.name() == field_expected.name()][0]

Expand Down

0 comments on commit d9bdedf

Please sign in to comment.