<commit_before>package com.balancedpayments;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

import org.junit.Before;
import org.junit.Test;

import com.balancedpayments.errors.CannotCreate;
import com.balancedpayments.errors.HTTPError;
import com.balancedpayments.errors.NotCreated;


public class CardTest  extends BaseTest {

    protected Card card;

    @Test
    public void testVerify() throws CannotCreate, HTTPError, NotCreated {
        Customer buyer = createBusinessCustomer();
        Card card = createCard(mp);
        buyer.addCard(card);
        buyer.addCard(createCard(mp));
        card.unstore();
    }
}<commit_msg>fixed test<commit_after>package com.balancedpayments;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

import org.junit.Before;
import org.junit.Test;

import com.balancedpayments.errors.CannotCreate;
import com.balancedpayments.errors.HTTPError;
import com.balancedpayments.errors.NotCreated;
import com.balancedpayments.errors.APIError;


public class CardTest  extends BaseTest {

    protected Card card;

    @Test(expected=APIError.class)
    public void testVerify() throws CannotCreate, HTTPError, NotCreated {
        Customer buyer = createBusinessCustomer();
        Card card = createCard(mp);
        buyer.addCard(card);
        buyer.addCard(createCard(mp));
        buyer.debit(100, "", card.uri, "", null, null);
        card.unstore();
        buyer.debit(100, "", card.uri, "", null, null);

    }
}
{'fraction_non_alphanumeric': 0.10519480519480519, 'fraction_numerical': 0.003896103896103896, 'mean_word_length': 3.954983922829582, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6881629', 'n_tokens_mistral': 457, 'n_tokens_neox': 449, 'n_words': 97}