def test_parse_common_organization_path(): expected = { "organization": "nautilus", } path = FeedServiceClient.common_organization_path(**expected) # Check that the path construction is reversible. actual = FeedServiceClient.parse_common_organization_path(path) assert expected == actual
def test_common_organization_path(): organization = "winkle" expected = "organizations/{organization}".format( organization=organization, ) actual = FeedServiceClient.common_organization_path(organization) assert expected == actual