aboutsummaryrefslogtreecommitdiffstats
path: root/github3/tests/converters_test.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2011-11-15 23:26:31 +0100
committerDavid Medina <davidmedina9@gmail.com>2011-11-15 23:26:31 +0100
commit9e7d4e655d966b325cc9db190273f99220b6041b (patch)
treed571b474f0ead315667ff6fbff43fde594e0b071 /github3/tests/converters_test.py
parentComplete anonymous User handler test (diff)
downloadpython-github3-9e7d4e655d966b325cc9db190273f99220b6041b.tar.xz
python-github3-9e7d4e655d966b325cc9db190273f99220b6041b.zip
API change: Added gravatar_id in User model
Also fix some bugs, update test and PEP8
Diffstat (limited to 'github3/tests/converters_test.py')
-rw-r--r--github3/tests/converters_test.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/github3/tests/converters_test.py b/github3/tests/converters_test.py
index 315477c..66eedc3 100644
--- a/github3/tests/converters_test.py
+++ b/github3/tests/converters_test.py
@@ -7,8 +7,10 @@ from unittest import TestCase
from datetime import datetime
API_STUB = {
- 'test_str': 'string', 'test_int': 1,
- 'test_date': '2008-01-14T04:33:35Z', 'test_bool': True,
+ 'test_str': 'string',
+ 'test_int': 1,
+ 'test_date': '2008-01-14T04:33:35Z',
+ 'test_bool': True,
'map': {'test_str': 'string'},
'dict_map': {
'map1': {
@@ -55,6 +57,7 @@ class TestModelizer(TestCase):
def test_loads(self):
parsed_model = self.modelizer.loads(API_STUB)
+ self.assertEquals(len(parsed_model), len(API_STUB))
self.assertEquals(parsed_model.test_str, 'string')
self.assertEquals(parsed_model.test_int, 1)
self.assertEquals(