From 6e5aae2fc8c3832bdae1cd5e0a269405fb059231 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 23 Nov 2010 12:35:34 +0100 Subject: 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 --- test/test_commit.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/test_commit.py') diff --git a/test/test_commit.py b/test/test_commit.py index a00a8de8..4a8d8b87 100644 --- a/test/test_commit.py +++ b/test/test_commit.py @@ -70,6 +70,8 @@ class TestCommit(TestBase): def test_bake(self): commit = self.rorepo.commit('2454ae89983a4496a445ce347d7a41c0bb0ea7ae') + # commits have no dict + self.failUnlessRaises(AttributeError, setattr, commit, 'someattr', 1) commit.author # bake assert_equal("Sebastian Thiel", commit.author.name) -- cgit v1.2.3