Debian Codegraph @

tests/legacy/objects/orgs/test_team.py

raw
1 """
2 Generated by generate/generate.py - 2020-08-02 10:33:09.248066
3 """
4 from aiogithubapi.objects.orgs.team import AIOGitHubAPIOrgsTeam
5
6 from tests.legacy.responses.orgs.team_fixtrue import team_fixtrue_response
7
8
9 def test_team(team_fixtrue_response):
10 obj = AIOGitHubAPIOrgsTeam(team_fixtrue_response)
11 assert obj.id == team_fixtrue_response["id"]
12 assert obj.node_id == team_fixtrue_response["node_id"]
13 assert obj.url == team_fixtrue_response["url"]
14 assert obj.html_url == team_fixtrue_response["html_url"]
15 assert obj.name == team_fixtrue_response["name"]
16 assert obj.slug == team_fixtrue_response["slug"]
17 assert obj.description == team_fixtrue_response["description"]
18 assert obj.privacy == team_fixtrue_response["privacy"]
19 assert obj.permission == team_fixtrue_response["permission"]
20 assert obj.members_url == team_fixtrue_response["members_url"]
21 assert obj.repositories_url == team_fixtrue_response["repositories_url"]
22 assert obj.parent == team_fixtrue_response["parent"]
23 assert obj.members_count == team_fixtrue_response["members_count"]
24 assert obj.repos_count == team_fixtrue_response["repos_count"]
25 assert obj.created_at == team_fixtrue_response["created_at"]
26 assert obj.updated_at == team_fixtrue_response["updated_at"]
27 assert obj.organization.login == team_fixtrue_response["organization"]["login"]
28 assert obj.organization.id == team_fixtrue_response["organization"]["id"]
29 assert obj.organization.node_id == team_fixtrue_response["organization"]["node_id"]
30 assert obj.organization.url == team_fixtrue_response["organization"]["url"]
31 assert obj.organization.repos_url == team_fixtrue_response["organization"]["repos_url"]
32 assert obj.organization.events_url == team_fixtrue_response["organization"]["events_url"]
33 assert obj.organization.hooks_url == team_fixtrue_response["organization"]["hooks_url"]
34 assert obj.organization.issues_url == team_fixtrue_response["organization"]["issues_url"]
35 assert obj.organization.members_url == team_fixtrue_response["organization"]["members_url"]
36 assert (
37 obj.organization.public_members_url
38 == team_fixtrue_response["organization"]["public_members_url"]
39 )
40 assert obj.organization.avatar_url == team_fixtrue_response["organization"]["avatar_url"]
41 assert obj.organization.description == team_fixtrue_response["organization"]["description"]
42 assert obj.organization.name == team_fixtrue_response["organization"]["name"]
43 assert obj.organization.company == team_fixtrue_response["organization"]["company"]
44 assert obj.organization.blog == team_fixtrue_response["organization"]["blog"]
45 assert obj.organization.location == team_fixtrue_response["organization"]["location"]
46 assert obj.organization.email == team_fixtrue_response["organization"]["email"]
47 assert (
48 obj.organization.twitter_username
49 == team_fixtrue_response["organization"]["twitter_username"]
50 )
51 assert obj.organization.is_verified == team_fixtrue_response["organization"]["is_verified"]
52 assert (
53 obj.organization.has_organization_projects
54 == team_fixtrue_response["organization"]["has_organization_projects"]
55 )
56 assert (
57 obj.organization.has_repository_projects
58 == team_fixtrue_response["organization"]["has_repository_projects"]
59 )
60 assert obj.organization.public_repos == team_fixtrue_response["organization"]["public_repos"]
61 assert obj.organization.public_gists == team_fixtrue_response["organization"]["public_gists"]
62 assert obj.organization.followers == team_fixtrue_response["organization"]["followers"]
63 assert obj.organization.following == team_fixtrue_response["organization"]["following"]
64 assert obj.organization.html_url == team_fixtrue_response["organization"]["html_url"]
65 assert obj.organization.created_at == team_fixtrue_response["organization"]["created_at"]
66 assert obj.organization.type == team_fixtrue_response["organization"]["type"]