def test_parse_domain_category_path():
    expected = {
        "customer": "cuttlefish",
        "domain_category": "mussel",
    }
    path = DomainCategoryServiceClient.domain_category_path(**expected)

    # Check that the path construction is reversible.
    actual = DomainCategoryServiceClient.parse_domain_category_path(path)
    assert expected == actual
def test_domain_category_path():
    customer = "oyster"
    domain_category = "nudibranch"
    expected = "customers/{customer}/domainCategories/{domain_category}".format(
        customer=customer,
        domain_category=domain_category,
    )
    actual = DomainCategoryServiceClient.domain_category_path(
        customer, domain_category)
    assert expected == actual