예제 #1
0
 def test_fuzz_in_range(self):
     for x in range(self.sf.len - 1):
         self.sf.tries = x
         with TruncateFuzzer(*self.args) as f:
             f._fuzz()
             n_expected = self.sf.len - self.sf.tries - 1
             self.assertEqual(len(f.output), n_expected)
예제 #2
0
 def test_is_not_minimizable(self):
     f = TruncateFuzzer(*self.args)
     self.assertFalse(f.is_minimizable)
예제 #3
0
 def test_fuzz_out_of_range(self):
     self.sf.tries = self.sf.len + 1
     with TruncateFuzzer(*self.args) as f:
         self.assertRaises(FuzzerExhaustedError, f._fuzz)