def test_behaviour(self):
     """Test behaviour of elements in the dialog
     """
     myDialog = ConverterDialog(PARENT)
     myDialog.cBDefaultOutputLocation.setEnabled(True)
     my_grid_path = os.path.join(TESTDATA, "grid.xml")
     myDialog.leInputPath.setText(my_grid_path)
     input_path = myDialog.leInputPath.text()
     output_path = myDialog.leOutputPath.text()
     assert myDialog.isEnabled(), "Output location should be disabled"
     expected_output_path = input_path[:-3] + "tif"
     assert output_path == expected_output_path, "Expected %s got %s" % (expected_output_path, output_path)
Exemple #2
0
 def test_behaviour(self):
     """Test behaviour of elements in the dialog
     """
     myDialog = ConverterDialog(PARENT)
     myDialog.cBDefaultOutputLocation.setEnabled(True)
     my_grid_path = os.path.join(TESTDATA, 'grid.xml')
     myDialog.leInputPath.setText(my_grid_path)
     input_path = myDialog.leInputPath.text()
     output_path = myDialog.leOutputPath.text()
     assert myDialog.isEnabled(), 'Output location should be disabled'
     expected_output_path = input_path[:-3] + 'tif'
     assert output_path == expected_output_path, \
         'Expected %s got %s' % (expected_output_path, output_path)