/[thuban]/branches/WIP-pyshapelib-bramz/test/test_map.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/test/test_map.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 343 by bh, Fri Oct 18 17:28:56 2002 UTC revision 409 by jonathan, Wed Feb 19 16:50:39 2003 UTC
# Line 216  class TestMapWithContents(TestMapBase, s Line 216  class TestMapWithContents(TestMapBase, s
216                              self.poly_layer,                              self.poly_layer,
217                              self.arc_layer]))                              self.arc_layer]))
218    
     def test_forwarding_fill(self):  
         """Test Map's forwarding of Layer.SetFill messages"""  
         self.poly_layer.SetFill(Color(0.0, 0.5, 1.0))  
         self.check_messages([(self.poly_layer, LAYER_LEGEND_CHANGED)])  
   
     def test_forwarding_stroke(self):  
         """Test Map's forwarding of Layer.SetStroke messages"""  
         self.poly_layer.SetStroke(Color(0.0, 0.5, 1.0))  
         self.check_messages([(self.poly_layer, LAYER_LEGEND_CHANGED)])  
   
     def test_forwarding_stroke_width(self):  
         """Test Map's forwarding of Layer.SetStrokeWidth messages"""  
         self.poly_layer.SetStrokeWidth(3)  
         self.check_messages([(self.poly_layer, LAYER_LEGEND_CHANGED)])  
   
219      def test_forwarding_visibility(self):      def test_forwarding_visibility(self):
220          """Test Map's forwarding of Layer.SetVisible messages"""          """Test Map's forwarding of Layer.SetVisible messages"""
221          self.poly_layer.SetVisible(0)          self.poly_layer.SetVisible(0)
# Line 244  class TestMapWithContents(TestMapBase, s Line 229  class TestMapWithContents(TestMapBase, s
229          UnsetModified clears the changed flag in the layer as well.          UnsetModified clears the changed flag in the layer as well.
230          """          """
231          self.failIf(self.map.WasModified())          self.failIf(self.map.WasModified())
232          self.poly_layer.SetFill(Color(0.0, 0.5, 1.0))          self.poly_layer.GetClassification().SetDefaultFill(Color(0.0, 0.5, 1.0))
233          self.assert_(self.map.WasModified())          self.assert_(self.map.WasModified())
234          self.map.UnsetModified()          self.map.UnsetModified()
235          self.failIf(self.map.WasModified())          self.failIf(self.map.WasModified())

Legend:
Removed from v.343  
changed lines
  Added in v.409

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26