예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
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
예제 #4
0
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]