1 |
2003-10-31 Bernhard Herzog <[email protected]> |
2003-10-31 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/classification.py (Classification.SetDefaultGroup): |
4 |
|
Send a CLASS_CHANGED message |
5 |
|
(Classification.RemoveGroup): Send a CLASS_CHANGED message and do |
6 |
|
not return the removed group since it wasn't used. |
7 |
|
|
8 |
|
* test/test_classification.py |
9 |
|
(TestClassification.test_set_default_group): New. Test the |
10 |
|
SetDefaultGroup method |
11 |
|
(TestClassification.test_insert_group): New. Test the InsertGroup |
12 |
|
method |
13 |
|
(TestClassification.test_remove_group): New. Test the RemoveGroup |
14 |
|
method |
15 |
|
(TestClassification.test_replace_group): New. Test the |
16 |
|
ReplaceGroup method |
17 |
|
|
18 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
19 |
|
|
20 |
|
* test/test_classification.py (TestClassification.setUp): |
21 |
|
Subscribe to the CLASS_CHANGED messages |
22 |
|
(TestClassification.tearDown): New. Destroy the classification |
23 |
|
properly |
24 |
|
(TestClassification.test_defaults): Add tests for the default line |
25 |
|
width and whether no messages were sent yet |
26 |
|
(TestClassification.test_set_default_properties): Add tests for |
27 |
|
messages and setting the default line width |
28 |
|
(TestClassification.test_add_singleton) |
29 |
|
(TestClassification.test_add_range) |
30 |
|
(TestClassification.test_multiple_groups): Add tests for messages |
31 |
|
|
32 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
33 |
|
|
34 |
|
Some more refactoring in preparation for new tests: |
35 |
|
|
36 |
|
* test/test_classification.py (TestClassification.setUp): New. |
37 |
|
Instantiate the classification here. Update the test methods |
38 |
|
accordingly. |
39 |
|
(TestClassification.test_multiple_groups): Make sure that the two |
40 |
|
singletons matching 1 are considered different. |
41 |
|
|
42 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
43 |
|
|
44 |
* test/test_classification.py (red, green, blue): New. These |
* test/test_classification.py (red, green, blue): New. These |
45 |
constants were used in several cases. Update the relevant methods. |
constants were used in several cases. Update the relevant methods. |
46 |
(TestClassification.test_defaults) |
(TestClassification.test_defaults) |