<filename>test/github/models/test_pull_request.py<gh_stars>1-10
from test.impl.base_test_case_class import BaseClass
from test.impl.builders import builder, build

from src.github.models import PullRequest


class TestPullRequest(BaseClass):
    def test_requested_reviewers_github_users_or_teams(self):
        user = build(builder.user().login("user1"))
        pull_request = build(
            builder.pull_request()
            .requested_reviewers([user])
            .requested_reviewer_team("some_team", ["user1", "user2"])
        )
        self.assertEqual(["user1", "user2"], pull_request.requested_reviewers())


if __name__ == "__main__":
    from unittest import main as run_tests

    run_tests()

<filename>test/github/models/test_pull_request.py<gh_stars>1-10
from test.impl.base_test_case_class import BaseClass
from test.impl.builders import builder, build

from src.github.models import PullRequest


class TestPullRequest(BaseClass):
    def test_requested_reviewers_github_users_or_teams(self):
        user = build(builder.user().login("user1"))
        pull_request = build(
            builder.pull_request()
            .requested_reviewers([user])
            .requested_reviewer_team("some_team", ["user1", "user2"])
        )
        self.assertEqual(["user1", "user2"], pull_request.requested_reviewers())


if __name__ == "__main__":
    from unittest import main as run_tests

    run_tests()
