From 3577754a29953c00f65f9b0b7ad257597c9ceb2d Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Mon, 6 Mar 2017 10:35:15 +0100 Subject: Remove redundant assertion That line is testing Python's list.count method, instead of yedit. The assertion right above is a superset of it, as it checks for equality to some expected value. --- roles/lib_utils/src/test/unit/test_yedit.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'roles/lib_utils') diff --git a/roles/lib_utils/src/test/unit/test_yedit.py b/roles/lib_utils/src/test/unit/test_yedit.py index ce5e027a7..a22cdee56 100755 --- a/roles/lib_utils/src/test/unit/test_yedit.py +++ b/roles/lib_utils/src/test/unit/test_yedit.py @@ -200,8 +200,6 @@ class YeditTest(unittest.TestCase): yed.append('x:y:z', [5, 6]) yed.append('x:y:z', [5, 6]) self.assertTrue(yed.get('x:y:z') == [1, 2, 3, [5, 6], [5, 6]]) - # pylint: disable=maybe-no-member - self.assertTrue(2 == yed.get('x:y:z').count([5, 6])) self.assertFalse(yed.exists('x:y:z', 4)) def test_add_item_to_dict(self): -- cgit v1.2.1