Esempio n. 1
0
def test_nca_by_authority_name():
    nca = pyncaids.NCA()
    authority_list = nca.nca_by_authority_name("Financial Conduct Authority")

    # data assertions

    assert len(authority_list) == 1
    assert authority_list[0].get("authority_id") == "GB-FCA"
    assert authority_list[0].get("country") == "United Kingdom"
    assert authority_list[0].get(
        "authority_name") == "Financial Conduct Authority"
Esempio n. 2
0
def test_nca_by_partial_authority_name():
    nca_dict = {
        "authority_id": "GB-FCA",
        "country": "United Kingdom",
        "authority_name": "Financial Conduct Authority"
    }
    nca = pyncaids.NCA()
    authority_list = nca.nca_by_partial_authority_name("Authority")

    # data assertions

    assert len(authority_list) > 1
    assert nca_dict in authority_list