Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion test_team_3.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Unit test file for team 3"""
import unittest
from pii_scan import analyze_text, show_aggie_pride # noqa
from pii_scan import analyze_text, show_aggie_pride # noqa


class TestTeam_3(unittest.TestCase):
Expand All @@ -14,6 +14,15 @@ def test_url(self):

def test_us_bank_number(self):
"""Test US_BANK_NUMBER functionality"""
#Positive test case
test_str = "My bank account number is 12345678901."
result = analyze_text(test_str, ['US_BANK_NUMBER'])
self.assertEqual(len(result), 1, 'No bank number detected ')
self.assertEqual(result[0].entity_type, 'US_BANK_NUMBER')
#Negative test case
test_str = "Number 201213"
result = analyze_text(test_str,['US_BANK_NUMBER'] )
self.assertEqual(len(result), 0, 'Should have found 0 Bank Numbers')

def test_us_driver_license(self):

Expand Down