def testIsIncludedInZipArchiveFilesJson(self):
     self.assertTrue(archive_module._IsIncludedInZipArchive('results.json'))
 def testIsIncludedInZipArchiveFilesDiffFiles(self):
     self.assertTrue(archive_module._IsIncludedInZipArchive('a-diff.png'))
     self.assertTrue(archive_module._IsIncludedInZipArchive('a-diff.txt'))
     self.assertTrue(archive_module._IsIncludedInZipArchive('a-wdiff.txt'))
     self.assertFalse(
         archive_module._IsIncludedInZipArchive('a-diff.png.foo'))
 def testIsIncludedInZipArchiveFilesOtherNegativeCases(self):
     self.assertFalse(
         archive_module._IsIncludedInZipArchive('results.html'))
     self.assertFalse(
         archive_module._IsIncludedInZipArchive('my-test.html'))
 def testIsIncludedInZipArchiveFilesExpectedFiles(self):
     self.assertTrue(
         archive_module._IsIncludedInZipArchive('a-expected.txt'))
     self.assertTrue(
         archive_module._IsIncludedInZipArchive('a-expected.html'))
 def testIsIncludedInZipArchiveFilesActualFilesWrongExtension(self):
     self.assertFalse(
         archive_module._IsIncludedInZipArchive('foo-actual.jpg'))
     self.assertFalse(
         archive_module._IsIncludedInZipArchive('foo-actual.html'))
 def testIsIncludedInZipArchiveFilesActualFiles(self):
     self.assertTrue(
         archive_module._IsIncludedInZipArchive('foo-actual.txt'))
     self.assertTrue(
         archive_module._IsIncludedInZipArchive('foo-actual.png'))
 def testIsIncludedInZipArchiveFilesNonCrashLogFiles(self):
     self.assertFalse(
         archive_module._IsIncludedInZipArchive('crashlog-foo.txt'))
     self.assertFalse(
         archive_module._IsIncludedInZipArchive('stack-foo.txt'))
 def testIsIncludedInZipArchiveFilesCrashLogs(self):
     self.assertTrue(
         archive_module._IsIncludedInZipArchive('foo-crash-log.txt'))
     self.assertTrue(
         archive_module._IsIncludedInZipArchive('foo-stack.txt'))