Skip to content
Permalink
Browse files

Compare case insensitive

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

0 comments on commit 5f0f806

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