Skip to content

Commit

Permalink
Update unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsunni committed Mar 13, 2013
1 parent 357fdbf commit e4f2723
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions safe_qgis/test_dock.py
Expand Up @@ -1661,17 +1661,17 @@ def test_hasParametersButtonDisabled(self):
"""Function configuration button is disabled
when layers not compatible."""
setCanvasCrs(GEOCRS, True)
setJakartaGeoExtent()
#add additional layers
#myResult, myMessage = setupScenario(
# theHazard='A flood in Jakarta like in 2007',
# theExposure='Essential Buildings',
# theFunction='Be flooded',
# theFunctionId='Flood Building Impact Function')
# heHazard='An earthquake in Yogyakarta like in 2006',
# theExposure = 'Essential Buildings',
# theFunction = 'Be damaged depending on building type',
# theFunctionId = 'ITB Earthquake Building Damage Function')
setupScenario(
theHazard='A flood in Jakarta like in 2007',
theHazard='An earthquake in Yogyakarta like in 2006',
theExposure='Essential Buildings',
theFunction='Be flooded',
theFunctionId='Flood Building Impact Function')
theFunction='Be damaged depending on building type',
theFunctionId='ITB Earthquake Building Damage Function')
myToolButton = DOCK.toolFunctionOptions
myFlag = myToolButton.isEnabled()
assert not myFlag, ('Expected configuration options '
Expand Down

0 comments on commit e4f2723

Please sign in to comment.