Exemple #1
0
 def test_get_set_stored_gas_price(self):
     """
     Checks default stored gas price and set method.
     """
     # checks default
     assert Settings.get_stored_gas_price() == 4
     # checks set
     Settings.set_stored_gas_price(42)
     assert Settings.get_stored_gas_price() == 42
 def store_gas_price(self):
     """
     Saves gas price value to the store.
     """
     gas_price = self.get_ui_gas_price()
     Settings.set_stored_gas_price(gas_price)