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_tree.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/test_tree.py') diff --git a/test/test_tree.py b/test/test_tree.py index 80db2e4b..ec10e962 100644 --- a/test/test_tree.py +++ b/test/test_tree.py @@ -23,6 +23,9 @@ class TestTree(TestBase): continue # END skip non-trees tree = item + # trees have no dict + self.failUnlessRaises(AttributeError, setattr, tree, 'someattr', 1) + orig_data = tree.data_stream.read() orig_cache = tree._cache -- cgit v1.2.3