Ejemplo n.º 1
0
 def test_is_test_file(self):
     port = test.TestPort()
     fs = port._filesystem
     self.assertTrue(test_files._is_test_file(fs, '', 'foo.html'))
     self.assertTrue(test_files._is_test_file(fs, '', 'foo.shtml'))
     self.assertFalse(test_files._is_test_file(fs, '', 'foo.png'))
     self.assertFalse(test_files._is_test_file(fs, '', 'foo-expected.html'))
     self.assertFalse(test_files._is_test_file(fs, '', 'foo-expected-mismatch.html'))
 def test_is_test_file(self):
     port = test.TestPort()
     fs = port._filesystem
     self.assertTrue(test_files._is_test_file(fs, '', 'foo.html'))
     self.assertTrue(test_files._is_test_file(fs, '', 'foo.shtml'))
     self.assertFalse(test_files._is_test_file(fs, '', 'foo.png'))
     self.assertFalse(test_files._is_test_file(fs, '', 'foo-expected.html'))
     self.assertFalse(
         test_files._is_test_file(fs, '', 'foo-expected-mismatch.html'))
Ejemplo n.º 3
0
 def test_is_test_file(self):
     self.assertTrue(test_files._is_test_file('foo.html'))
     self.assertTrue(test_files._is_test_file('foo.shtml'))
     self.assertFalse(test_files._is_test_file('foo.png'))
     self.assertFalse(test_files._is_test_file('foo-expected.html'))
     self.assertFalse(test_files._is_test_file('foo-expected-mismatch.html'))