source: trunk/anuga_core/source/anuga/caching/dummy_classes_for_testing.py @ 7854

Last change on this file since 7854 was 5855, checked in by ole, 16 years ago

Much more work on caching and fitting.
Caching of set_quantity as per Okushiri example now works again.

Moreover, caching can now handle instances and ever circular references.

This should address ticket:244 and ticket:302

File size: 525 bytes
Line 
1"""Dummy class for use with test_caching.py
2"""
3
4
5class Dummy:
6    def __init__(self, value, another):
7        self.value = value
8        self.another = another
9   
10    def __repr__(self):
11        return str(self.value) + ', ' + str(self.another)
12   
13
14# Define class Dummy_memorytest before any tests are run
15# to make sure it has a different memory address
16# to the one defined in test 'test_objects_are_created_memory'
17class Dummy_memorytest:
18    def __init__(self, value, another):
19        self.value = value     
20   
Note: See TracBrowser for help on using the repository browser.