def test_find_with_skipped_directories_2(self): port = TestPort() tests = port.tests(['userscripts/resources']) self.assertEqual(tests, set([]))
def test_find_glob(self): port = TestPort() tests = port.tests(['failures/expected/im*']) self.assertEqual(len(tests), 2)
def test_find_with_skipped_directories(self): port = TestPort() tests = port.tests('userscripts') self.assertTrue('userscripts/resources/iframe.html' not in tests)
def test_find_no_paths_specified(self): port = TestPort() layout_tests_dir = port.layout_tests_dir() tests = port.tests([]) self.assertNotEqual(len(tests), 0)
def test_find_one_test(self): port = TestPort() tests = port.tests(['failures/expected/image.html']) self.assertEqual(len(tests), 1)
def test_find_with_skipped_directories_2(self): port = TestPort(MockHost()) tests = port.tests(['userscripts/resources']) self.assertEqual(tests, set([]))
def test_find_with_skipped_directories(self): port = TestPort(MockHost()) tests = port.tests('userscripts') self.assertTrue('userscripts/resources/iframe.html' not in tests)
def test_find_glob(self): port = TestPort(MockHost()) tests = port.tests(['failures/expected/im*']) self.assertEqual(len(tests), 2)
def test_find_one_test(self): port = TestPort(MockHost()) tests = port.tests(['failures/expected/image.html']) self.assertEqual(len(tests), 1)
def test_find_no_paths_specified(self): port = TestPort(MockHost()) layout_tests_dir = port.layout_tests_dir() tests = port.tests([]) self.assertNotEqual(len(tests), 0)