diff options
| -rwxr-xr-x | test_github3.py | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/test_github3.py b/test_github3.py deleted file mode 100755 index a0464c6..0000000 --- a/test_github3.py +++ /dev/null @@ -1,74 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -""" - convore tests - ~~~~~~~~~~~~~ - - Convore test suite. - - Looks for authentication in 'CONVORE_NAME' and - 'CONVORE_PASS' environment variables for configuration. - - :copyright: (c) 2011 by Kenneth Reitz. - :license: ISC, see LICENSE for more details. -""" - - -import os - -import unittest2 as unittest - -import convore - - -CONVORE_NAME = os.environ.get('CONVORE_NAME') -CONVORE_PASS = os.environ.get('CONVORE_PASS') - - - -class ConvoreAPI(unittest.TestCase): - """Requests test cases.""" - - def setUp(self): - self.convore = convore.Convore(CONVORE_NAME, CONVORE_PASS) - - def tearDown(self): - pass - - def test_convore_login(self): - self.assertEqual(self.convore.account_verify(), True) - - - - - -class ConvoreGroups(unittest.TestCase): - def setUp(self): - self.convore = convore.Convore(CONVORE_NAME, CONVORE_PASS) - - def test_works(self): - self.convore.groups - - def test_cache_works(self): - int_before = int(len(self.convore.groups)) - - self.convore.groups[81] - - int_after = int(len(self.convore.groups)) - self.assertEqual((int_after - int_before), 1) - - def test_discover_explore(self): - self.convore.groups.discover.explore.popular() - self.convore.groups.discover.explore.recent() - self.convore.groups.discover.explore.alphabetical() - - - def test_discover_category(self): - self.convore.groups.discover.category - self.convore.groups.discover.category['gossip'] - - def test_discover_search(self): - self.convore.groups.discover.search('github') - -if __name__ == '__main__': - unittest.main() |
