예제 #1
0
def testFunction(domain_url, session):

	expected_results = {
		False: [
			"test_user_channel_authorized@" + domain_url,
			"test_topic_channel_open@topics." + domain_url,
			"test_user_channel_open@" + domain_url
		]
	}

	return performApproveSubscriptionRequestsPermissionChecks(domain_url, session, None, expected_results)
def testFunction(domain_url, session):

    moderator_username = "******"

    expected_results = {
        True: ["test_topic_channel_open@topics." + domain_url],
        False: [
            "test_user_channel_open@" + domain_url,
            "test_user_channel_authorized@" + domain_url
        ]
    }

    return performApproveSubscriptionRequestsPermissionChecks(
        domain_url, session, moderator_username, expected_results)
def testFunction(domain_url, session):

	moderator_username = "******"

	expected_results = {
		True : [
			"test_topic_channel_open@topics." + domain_url
		],
		False: [
			"test_user_channel_open@" + domain_url,
			"test_user_channel_authorized@" + domain_url
		]
	}

	return performApproveSubscriptionRequestsPermissionChecks(domain_url, session, moderator_username, expected_results)