def test_not_similar(self):
     """Test not similar."""
     self.assertFalse(reproducers.is_similar('t', ['a'], 'z', ['b']))
     self.assertFalse(
         reproducers.is_similar('t', ['a', 'b'], 't', ['a', 'c', 'd']))
     self.assertFalse(
         reproducers.is_similar('t', ['a'], 't', ['a', 'c', 'b']))
 def test_similar(self):
     """Test similar."""
     self.assertTrue(reproducers.is_similar('t', ['a'], 'z', ['a']))
     self.assertTrue(
         reproducers.is_similar('t', ['a', 'b'], 't', ['a', 'c']))
     self.assertTrue(reproducers.is_similar('t', ['a'], 't', ['a', 'c']))
     self.assertTrue(
         reproducers.is_similar('t', ['a', 'b', 'd'], 't', ['a', 'b', 'c']))
     self.assertTrue(
         reproducers.is_similar('t', ['a', 'b'], 't', ['a', 'b', 'c']))
Esempio n. 3
0
 def test_not_similar(self):
     """Test not similar."""
     self.assertFalse(
         reproducers.is_similar(common.CrashSignature('t', ['a']),
                                common.CrashSignature('z', ['b'])))
     self.assertFalse(
         reproducers.is_similar(common.CrashSignature('t', ['a', 'b']),
                                common.CrashSignature('t',
                                                      ['a', 'c', 'd'])))
     self.assertFalse(
         reproducers.is_similar(common.CrashSignature('t', ['a']),
                                common.CrashSignature('t',
                                                      ['a', 'c', 'b'])))