<commit_before>import unittest
import lob
# Setting the API key

# Create an address

class TestAddressFunctions(unittest.TestCase):
    def setUp(self):
        lob.api_key = '<KEY>'

    def test_list_addresses(self):
        addresses = lob.Address.list()
        self.assertTrue(isinstance(addresses.data[0], lob.Address))
        self.assertEqual(addresses.object, 'list')

    def test_list_addresses_limit(self):
        addresses = lob.Address.list(count=2)
        self.assertTrue(isinstance(addresses.data[0], lob.Address))
        self.assertEqual(len(addresses.data), 2)

    def test_list_address_fail(self):
        self.assertRaises(lob.error.InvalidRequestError, lob.Address.list, count=1000)

    def test_create_address(self):
        address = lob.Address.create(
            name='Lob',
            address_line1='185 Berry Street',
            address_line2='Suite 1510',
            address_city='San Francisco',
            address_zip='94017',
            address_state='CA',
            address_country='US'
        )

        self.assertTrue(isinstance(address, lob.Address))
        self.assertEqual(address.name, 'Lob')

    def test_create_addresss_fail(self):
        self.assertRaises(lob.error.InvalidRequestError, lob.Address.create)

    def test_retrieve_address(self):
        address = lob.Address.retrieve(id=lob.Address.list().data[0].id)
        self.assertTrue(isinstance(address, lob.Address))

    def test_retrieve_address_fail(self):
        self.assertRaises(lob.error.InvalidRequestError, lob.Address.retrieve, id='test')


    def test_delete_address(self):
        addr = lob.Address.list().data[0].id
        delAddr = lob.Address.delete(id=addr)
        self.assertEqual(addr, delAddr.id)


    def test_address_verification(self):
        addr = lob.Verification.create(name='Lob',
            email='<EMAIL>',
            address_line1='220 <NAME>',
            address_city='Boston',<commit_msg>remove disallowed params from verify test<commit_after>import unittest
import lob
# Setting the API key

# Create an address

class TestAddressFunctions(unittest.TestCase):
    def setUp(self):
        lob.api_key = '<KEY>'

    def test_list_addresses(self):
        addresses = lob.Address.list()
        self.assertTrue(isinstance(addresses.data[0], lob.Address))
        self.assertEqual(addresses.object, 'list')

    def test_list_addresses_limit(self):
        addresses = lob.Address.list(count=2)
        self.assertTrue(isinstance(addresses.data[0], lob.Address))
        self.assertEqual(len(addresses.data), 2)

    def test_list_address_fail(self):
        self.assertRaises(lob.error.InvalidRequestError, lob.Address.list, count=1000)

    def test_create_address(self):
        address = lob.Address.create(
            name='Lob',
            address_line1='185 Berry Street',
            address_line2='Suite 1510',
            address_city='San Francisco',
            address_zip='94017',
            address_state='CA',
            address_country='US'
        )

        self.assertTrue(isinstance(address, lob.Address))
        self.assertEqual(address.name, 'Lob')

    def test_create_addresss_fail(self):
        self.assertRaises(lob.error.InvalidRequestError, lob.Address.create)

    def test_retrieve_address(self):
        address = lob.Address.retrieve(id=lob.Address.list().data[0].id)
        self.assertTrue(isinstance(address, lob.Address))

    def test_retrieve_address_fail(self):
        self.assertRaises(lob.error.InvalidRequestError, lob.Address.retrieve, id='test')


    def test_delete_address(self):
        addr = lob.Address.list().data[0].id
        delAddr = lob.Address.delete(id=addr)
        self.assertEqual(addr, delAddr.id)


    def test_address_verification(self):
        addr = lob.Verification.create(
            address_line1='220 <NAME>',
            address_city='Boston',
{'fraction_non_alphanumeric': 0.11631497683993824, 'fraction_numerical': 0.014410705095213588, 'mean_word_length': 3.0196483971044468, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5248400', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1156, 'n_words': 179}