diff options
author | 2011-11-12 19:06:55 +0100 | |
---|---|---|
committer | 2011-11-12 19:06:55 +0100 | |
commit | 1836ee60f0a3772188c9341efe737aa03ca6f2ff (patch) | |
tree | b54000ce6ab805d24668c61c69f289fd0fbd3d73 /github3/tests/get_handlers_test.py | |
parent | Added converters test (diff) | |
download | python-github3-1836ee60f0a3772188c9341efe737aa03ca6f2ff.tar.xz python-github3-1836ee60f0a3772188c9341efe737aa03ca6f2ff.zip |
PEP8 and renaming
Diffstat (limited to 'github3/tests/get_handlers_test.py')
-rw-r--r-- | github3/tests/get_handlers_test.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/github3/tests/get_handlers_test.py b/github3/tests/get_handlers_test.py new file mode 100644 index 0000000..0ae1302 --- /dev/null +++ b/github3/tests/get_handlers_test.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*- + +from unittest import TestCase +from github3 import api +from github3 import handlers + + +class TestGetHandlers(TestCase): + + def setUp(self): + self.anom_gh = api.Github() + self.auth_gh = api.Github('test', 'password') + + def test_get_user(self): + anom_user = self.anom_gh.users + auth_user = self.auth_gh.users + + self.assertEquals(isinstance(anom_user, handlers.users.User), True) + self.assertEquals(isinstance(auth_user, handlers.users.AuthUser), True) + + def test_get_gists(self): + anom_gists = self.anom_gh.gists + auth_gists = self.auth_gh.gists + + self.assertEquals(isinstance(anom_gists, handlers.gists.Gist), True) + self.assertEquals( + isinstance(auth_gists, handlers.gists.AuthGist), True) |