Skip to content
Permalink
Browse files

testing.checkLayersEqual, assert field names

  • Loading branch information
m-kuhn committed May 2, 2018
1 parent 291c039 commit d9bdedf6d50bc968eda2efe12cc56bbc1cdb0387
Showing with 6 additions and 0 deletions.
  1. +6 −0 python/testing/__init__.py
@@ -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]

0 comments on commit d9bdedf

Please sign in to comment.
You can’t perform that action at this time.