Skip to content

Commit

Permalink
Compare case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 2, 2018
1 parent d9bdedf commit 5f0f806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/testing/__init__.py
Expand Up @@ -156,8 +156,8 @@ def sort_by_pk_or_fid(f):
if use_asserts:
_TestCase.assertIn(
self,
field_expected.name(),
feats[1].fields().names())
field_expected.name().lower(),
(name.lower() for name in 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 5f0f806

Please sign in to comment.