diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-23 12:35:34 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-23 12:35:59 +0100 |
commit | 6e5aae2fc8c3832bdae1cd5e0a269405fb059231 (patch) | |
tree | 0436d71c5f99eb004acf95604edcecd040cd2724 /test/test_refs.py | |
parent | 739fa140235cc9d65c632eaf1f5cacc944d87cfb (diff) | |
download | gitpython-6e5aae2fc8c3832bdae1cd5e0a269405fb059231.tar.gz |
Initial interface including some of the implementation of the RefLog. TestCase scetched out for now
tests: Added tests to verify that objects don't have a dict. Previously, due to a missing __slots__ member in Serializable, most objects would indeed have a dict, although the opposite was intended
Diffstat (limited to 'test/test_refs.py')
-rw-r--r-- | test/test_refs.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_refs.py b/test/test_refs.py index 700e5fac..ebf1a00d 100644 --- a/test/test_refs.py +++ b/test/test_refs.py @@ -33,6 +33,8 @@ class TestRefs(TestBase): if tag.tag is not None: tag_object_refs.append( tag ) tagobj = tag.tag + # have no dict + self.failUnlessRaises(AttributeError, setattr, tagobj, 'someattr', 1) assert isinstance( tagobj, TagObject ) assert tagobj.tag == tag.name assert isinstance( tagobj.tagger, Actor ) |