source: anuga_core/source/anuga/caching/dummy_classes_for_testing.py @ 5853

Last change on this file since 5853 was 5853, checked in by ole, 15 years ago

Work towards testing caching with instances as inputs.
Test fails deliberately at the moment.

File size: 510 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 copy(self):
11        return Dummy(self.value, 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.