-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_original.py
More file actions
31 lines (20 loc) · 853 Bytes
/
test_original.py
File metadata and controls
31 lines (20 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
__author__ = 'afreisthler'
from unittest import TestCase
from github import GitHub
class TestOriginal(TestCase):
def setUp(self):
self.github = GitHub('afreisthler')
def test_id(self):
user_id = self.github.get_id()
self.assertEqual(user_id, 1740138)
def test_number_public_repos(self):
number_public_repos = self.github.get_number_public_repos()
self.assertTrue(number_public_repos >= 4)
def test_public_repos(self):
public_repo_uris = self.github.get_public_repo_uris()
self.assertTrue(len(public_repo_uris) >= 4)
def test_all_details(self):
id, number_public_repos, public_repo_uris = self.github.get_all_details()
self.assertEqual(id, 1740138)
self.assertTrue(number_public_repos >= 4)
self.assertTrue(len(public_repo_uris) >= 4)