예제 #1
0
    def test_context_contains_admin_usernames(self, pyramid_request):
        result = admins_index(pyramid_request)

        assert set(result["admin_users"]) == set([
            "acct:[email protected]", "acct:[email protected]",
            "acct:[email protected]"
        ])
예제 #2
0
파일: admins_test.py 프로젝트: hypothesis/h
    def test_context_contains_admin_usernames(self, pyramid_request):
        result = admins_index(pyramid_request)

        assert set(result["admin_users"]) == set(
            ["acct:[email protected]", "acct:[email protected]", "acct:[email protected]"]
        )
예제 #3
0
    def test_when_no_admins(self, pyramid_request):
        result = admins_index(pyramid_request)

        assert result["admin_users"] == []
예제 #4
0
파일: admins_test.py 프로젝트: hypothesis/h
    def test_when_no_admins(self, pyramid_request):
        result = admins_index(pyramid_request)

        assert result["admin_users"] == []