Skip to content
Permalink
Browse files

Fix up test

  • Loading branch information
nyalldawson committed Oct 5, 2018
1 parent 3fc0e69 commit 2f89139ce3a8062d4155cfbe47f8d124a66ec2e2
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/src/python/providertestbase.py
@@ -309,8 +309,8 @@ def testGetFeaturesPolyFilterRectTests(self):
assert set(features) == set([1, 2, 3, 4, 5]), 'Got {} instead'.format(features)

def testMinValue(self):
self.assertIsNone(self.source.minimumValue(-1))
self.assertIsNone(self.source.minimumValue(1000))
self.assertFalse(self.source.minimumValue(-1))
self.assertFalse(self.source.minimumValue(1000))

self.assertEqual(self.source.minimumValue(self.source.fields().lookupField('cnt')), -200)
self.assertEqual(self.source.minimumValue(self.source.fields().lookupField('name')), 'Apple')
@@ -323,8 +323,8 @@ def testMinValue(self):
self.assertEqual(min_value, 200)

def testMaxValue(self):
self.assertIsNone(self.source.maximumValue(-1))
self.assertIsNone(self.source.maximumValue(1000))
self.assertFalse(self.source.maximumValue(-1))
self.assertFalse(self.source.maximumValue(1000))
self.assertEqual(self.source.maximumValue(self.source.fields().lookupField('cnt')), 400)
self.assertEqual(self.source.maximumValue(self.source.fields().lookupField('name')), 'Pear')

0 comments on commit 2f89139

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