test_SQLi.py 742 B

123456789101112131415161718192021222324252627
  1. import unittest
  2. import unittest.mock as mock
  3. from Test.GenericTest import GenericTest
  4. from Test.Lib import test_pcap_ips
  5. # FIXME: create new hashes if new test.pcap is used
  6. sha_default = 'fa9a43a8b6eb959f25cf3306c9b94b0957027d91b61edd2c9906a135b814f148'
  7. """
  8. CURRENT COVERAGE
  9. Name Stmts Miss Cover Missing (lines)
  10. ---------------------------------------------------------------------------
  11. Attack/SQLiAttack.py 159 5 97% 62, 71, 113, 120, 245
  12. """
  13. # TODO: get 100% coverage
  14. class UnitTestSQLi(GenericTest):
  15. def test_default(self):
  16. # FIXME: maybe use another seed
  17. self.generic_test([['SQLiAttack']], sha_default)
  18. if __name__ == '__main__':
  19. unittest.main()