The yaml test suite has some weird bool rules

This commit is contained in:
Honza Král
2014-01-20 18:51:04 +01:00
parent 69b0c7141d
commit 705d5d75cc
@@ -144,11 +144,11 @@ class YamlTestCase(ElasticTestCase):
except AssertionError:
pass
else:
self.assertFalse(value)
self.assertIn(value, ('', None, False, 0))
def run_is_true(self, action):
value = self._lookup(action)
self.assertTrue(value)
self.assertNotIn(value, ('', None, False, 0))
def run_length(self, action):
for path, expected in action.items():