def test_lists_flagged_usernames_no_results(self, nipsa_service, pyramid_request): nipsa_service.flagged = set([]) result = nipsa_index(pyramid_request) assert result['userids'] == []
def test_lists_flagged_usernames(self, pyramid_request): result = nipsa_index(pyramid_request) assert set(result["userids"]) == set([ "acct:[email protected]", "acct:[email protected]", "acct:[email protected]" ])
def test_lists_flagged_usernames(self, pyramid_request): result = nipsa_index(pyramid_request) assert set(result['userids']) == set([ 'acct:[email protected]', 'acct:[email protected]', 'acct:[email protected]', ])
def test_lists_flagged_usernames_no_results(self, nipsa_service, pyramid_request): nipsa_service.flagged = set([]) result = nipsa_index(pyramid_request) assert result["userids"] == []
def test_lists_flagged_usernames(self, pyramid_request): result = nipsa_index(pyramid_request) assert set(result["userids"]) == set( ["acct:[email protected]", "acct:[email protected]", "acct:[email protected]"] )