Beispiel #1
0
    def setUpClass(cls):
        """Setup for all tests in the class."""

        cls.client = get_client()
        cls.token_update_request = {
            "exp_date": "0424"
        }
Beispiel #2
0
    def setUpClass(cls):
        """Setup for all the tests in the test class."""

        cls.client = get_client()
        cls.num_clients_created = 20

        cls.create_test_users()
Beispiel #3
0
    def setUp(self):
        """Setup for each test."""

        self.client = get_client()
        self.fake = Faker()
        self.sim = Simulate()

        self.generate_authorizations(10)
Beispiel #4
0
 def setUpClass(cls):
     """Setup for each test in the class."""
     cls.client = get_client()
     cls.user = cls.client.users.create({})
     cls.transition_data = {
         'reason_code': '00',
         'reason': 'Testing',
         'channel': 'SYSTEM',
         'user_token': cls.user.token
     }
Beispiel #5
0
    def setUpClass(cls):
        """Setup for all tests in the class."""

        cls.client = get_client()
        cls.card_product = CardProducts().create()
        cls.user = cls.client.users.create()
        cls.card_request = {
            "card_product_token": cls.card_product.token,
            "user_token": cls.user.token
        }
    def test_look_up_fail_ssn(self):
        """Unsuccessful lookup by ssn."""
        client = get_client()

        search_options = {'ssn': 'abcdefghi'}

        results = client.users.look_up(search_options)

        self.assertEqual(len(results), 0,
                         'Look up returned the wrong number of results')
Beispiel #7
0
    def setUp(self):
        """Setup each test."""

        self.client = get_client()

        user = self.client.users.create({})

        card_request = {
            "card_product_token": self.card_product.token,
            "user_token": user.token
        }

        self.card = self.client.cards.create(card_request)
    def setUpClass(cls):
        """Set up for all the tests in the test class."""
        cls.client = get_client()
        cls.fake = Faker()
        cls.sim = Simulate()
        cls._user = cls.get_user()
        cls._merchant = cls.get_merchant()
        cls._fund_source = cls.get_user_payment_card()
        cls._card_product = CardProducts().create()
        cls._card = cls.get_card()
        cls._address = cls.set_user_address()

        cls._auth_tokens = []

        cls.fund_card()
        cls.activate_card()
        cls.generate_authorizations(10)
Beispiel #9
0
    def setUpClass(cls):
        """Setup for all tests in the class."""

        cls.client = get_client()
    def setUp(self):
        """Setup each test."""

        self.client = get_client()
Beispiel #11
0
    def setUpClass(cls):
        """Setup for each test in the class."""

        cls.client = get_client()
    def setUpClass(cls):
        """Setup each test."""

        cls.client = get_client()
Beispiel #13
0
    def setUp(self):
        """Setup each test."""

        self.client = get_client()
        self.times = Utilities.get_current_time_all_formats()
Beispiel #14
0
    def setUp(self):
        """Setup for each test."""

        self.client = get_client()
        self.parent = self.client.users.create({})
 def setUpClass(cls):
     cls.client = get_client()
     cls.fake = Faker()
     cls.sim = Simulate()
     cls.card_product = CardProducts().create()
     cls.generate_authorizations(20)
Beispiel #16
0
    def setUp(self):
        """Setup each test."""

        self.client = get_client()
        self.fake = Faker()
        self.sim = Simulate()
Beispiel #17
0
    def setUpClass(cls):
        """Setup for all the tests in the class."""

        cls.client = get_client()
        cls.user = cls.client.users.create({})