diff options
author | 2012-02-10 00:59:01 +0100 | |
---|---|---|
committer | 2012-02-10 00:59:01 +0100 | |
commit | 46d535027b5247a9f1b242b4944e2ee8d65b4fad (patch) | |
tree | f303b79c167c3b94ab741594e93e5603a5dadfb6 /pygithub3/tests/utils/resources.py | |
parent | json:dumps.loads mocked (diff) | |
download | python-github3-46d535027b5247a9f1b242b4944e2ee8d65b4fad.tar.xz python-github3-46d535027b5247a9f1b242b4944e2ee8d65b4fad.zip |
Resources tests
resources.core
* Also detected and fixed memory bug
Diffstat (limited to 'pygithub3/tests/utils/resources.py')
-rw-r--r-- | pygithub3/tests/utils/resources.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pygithub3/tests/utils/resources.py b/pygithub3/tests/utils/resources.py new file mode 100644 index 0000000..364cc6f --- /dev/null +++ b/pygithub3/tests/utils/resources.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*- + +from pygithub3.resources.base import Resource + + +class Simple(Resource): + pass + + +class HasSimple(Resource): + _maps = {'simple': Simple} + + +class Nested(Resource): + _dates = ('date', ) + _maps = {'simple': Simple} + _collection_maps = { + 'list_collection': HasSimple, + 'items_collections': HasSimple + } |