Example #1
0
File: test.py Project: rylans/prowl
    def test_match_cc_multiline(self):
        text = """cc 4921717442661914
        expiry: 04/14
        CVV: 878

        number: 4147 2020 4322 9898
        expiry date: 09-2012
        CVV2: 665
        """
        p = Prowler(text)
        self.assertGreater(p.score(), 0.31)
Example #2
0
File: test.py Project: rylans/prowl
 def test_match_mastercard_unspaced(self):
     p = Prowler("5112751234567832")
     self.assertGreater(p.score(), 0)
Example #3
0
File: test.py Project: rylans/prowl
 def test_no_match_american_express(self):
     p = Prowler("qwe351111111111112qwe")
     self.assertEqual(p.score(), 0)
Example #4
0
File: test.py Project: rylans/prowl
 def test_match_email_password_caps(self):
     p = Prowler("[email protected]:JICH2X")
     self.assertGreater(p.score(), 0)
Example #5
0
File: test.py Project: rylans/prowl
 def test_match_locale_ca(self):
     p = Prowler("San Jose, CA 95113")
     self.assertGreater(p.score(), 0)
Example #6
0
File: test.py Project: rylans/prowl
 def test_match_cvv2_long(self):
     p = Prowler("CVV2: 1919")
     self.assertGreater(p.score(), 0)
Example #7
0
File: test.py Project: rylans/prowl
 def test_match_cvv_long(self):
     p = Prowler("cvv: 4960 and")
     self.assertGreater(p.score(), 0)
Example #8
0
File: test.py Project: rylans/prowl
 def test_match_visa_natural(self):
     p = Prowler("VISA Card Number : 4352577623642232 Exp")
     self.assertGreater(p.score(), 0)
Example #9
0
File: test.py Project: rylans/prowl
 def test_match_dob_month_oct(self):
     p = Prowler("birthdate: october 16, 1986")
     self.assertGreater(p.score(), 0)
Example #10
0
File: test.py Project: rylans/prowl
 def test_match_dob_month_jan(self):
     p = Prowler("birthdate: january 5, 1966")
     self.assertGreater(p.score(), 0)
Example #11
0
File: test.py Project: rylans/prowl
 def test_match_dob_year_last(self):
     p = Prowler("Date of birth: 18/2/1954")
     self.assertGreater(p.score(), 0)
Example #12
0
File: test.py Project: rylans/prowl
 def test_match_dob_with_year_dash(self):
     p = Prowler("birthday  1983-06-18")
     self.assertGreater(p.score(), 0)
Example #13
0
File: test.py Project: rylans/prowl
 def test_match_dob_with_year(self):
     p = Prowler("dob =  1983/06/18")
     self.assertGreater(p.score(), 0)
Example #14
0
File: test.py Project: rylans/prowl
 def test_match_dob_no_year(self):
     p = Prowler("Date of Birth: 11/28")
     self.assertGreater(p.score(), 0)
Example #15
0
File: test.py Project: rylans/prowl
 def test_match_email_no_punctuation(self):
     p = Prowler("*****@*****.**")
     self.assertGreater(p.score(), 0)
Example #16
0
File: test.py Project: rylans/prowl
 def test_match_visa_short_unspaced(self):
     p = Prowler("4222222222222")
     self.assertGreater(p.score(), 0)
Example #17
0
File: test.py Project: rylans/prowl
 def test_match_visa_long_spaced(self):
     p = Prowler("%4012 8888 8888 1881%")
     self.assertGreater(p.score(), 0)
Example #18
0
File: test.py Project: rylans/prowl
 def test_match_dob_month_jun(self):
     p = Prowler("date of birth is june 14, 1990")
     self.assertGreater(p.score(), 0)
Example #19
0
File: test.py Project: rylans/prowl
 def test_match_cvv_short(self):
     p = Prowler("CVV: 960 and")
     self.assertGreater(p.score(), 0)
Example #20
0
File: test.py Project: rylans/prowl
 def test_match_email_with_dots(self):
     p = Prowler("*****@*****.**")
     self.assertGreater(p.score(), 0)
Example #21
0
File: test.py Project: rylans/prowl
 def test_match_cvv2_short(self):
     p = Prowler("cvv2: 123")
     self.assertGreater(p.score(), 0)
Example #22
0
File: test.py Project: rylans/prowl
 def test_match_email_within_text(self):
     p = Prowler("lorem ipsum: [email protected] ipsum lorem")
     self.assertGreater(p.score(), 0)
Example #23
0
File: test.py Project: rylans/prowl
 def test_match_zero_emails(self):
     p = Prowler("lorem ipsum dolar.sit#amet9 lorem ipsu+m")
     self.assertEqual(p.score(), 0)
Example #24
0
File: test.py Project: rylans/prowl
 def test_match_american_express_unspaced(self):
     p = Prowler("asdf371617987541039.asdf")
     self.assertGreater(p.score(), 0)
Example #25
0
File: test.py Project: rylans/prowl
 def test_match_cvc(self):
     p = Prowler("CVC2: 427")
     self.assertGreater(p.score(), 0)
Example #26
0
File: test.py Project: rylans/prowl
 def test_match_email_password(self):
     p = Prowler("[email protected]:sorei185")
     self.assertGreater(p.score(), 0)