def test_basic(self, tmpdir): p = tmpdir.join('foo.xml') p.write(self._xml) tests = set(deqp.gen_mustpass_tests(six.text_type(p))) assert tests == { 'dEQP.piglit.group1.test1', 'dEQP.piglit.group1.test2', 'dEQP.piglit.nested.group2.test3', 'dEQP.piglit.nested.group2.test4', }
def test_basic(self, tmpdir): p = tmpdir.join('foo.txt') p.write(self._txt) tests = set(deqp.gen_mustpass_tests(str(p))) print(tests) assert tests == { 'dEQP.piglit.group1.test1', 'dEQP.piglit.group1.test2', 'dEQP.piglit.nested.group2.test3', 'dEQP.piglit.nested.group2.test4', }