def test_skip_if(self): tests = deepcopy(self.tests) tests = list(skip_if(tests, {})) self.assertEquals(len(tests), len(self.tests)) tests = deepcopy(self.tests) tests = list(skip_if(tests, {'foo': 'bar'})) self.assertNotIn(self.tests[1], tests)
def test_skip_if(self): tests = deepcopy(self.tests) tests = list(skip_if(tests, {})) self.assertEquals(len(tests), len(self.tests)) tests = deepcopy(self.tests) tests = list(skip_if(tests, {'foo': 'bar'})) self.assertNotIn(self.tests[1], tests)
def test_skip_if(tests): ref = deepcopy(tests) tests = list(skip_if(tests, {})) assert len(tests) == len(ref) tests = deepcopy(ref) tests = list(skip_if(tests, {'foo': 'bar'})) assert tests[1] not in ref
def test_skip_if(tests): ref = deepcopy(tests) tests = list(skip_if(tests, {})) assert len(tests) == len(ref) tests = deepcopy(ref) tests = list(skip_if(tests, {"foo": "bar"})) assert "disabled" in tests[1] assert "disabled" in tests[8]