Add set comparison

Also add a (too) simple mechanism too truncate too long explanations.

--HG--
branch : trunk
This commit is contained in:
Floris Bruynooghe
2010-09-16 01:06:07 +01:00
parent 6fb56443a9
commit 58169edc8e
2 changed files with 46 additions and 13 deletions
+4
View File
@@ -81,3 +81,7 @@ class Test_pytest_assert_compare:
def test_dict(self):
expl = plugin.pytest_assert_compare('==', {'a': 0}, {'a': 1})
assert len(expl) > 1
def test_set(self):
expl = plugin.pytest_assert_compare('==', set([0, 1]), set([0, 2]))
assert len(expl) > 1