Esempio n. 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
Esempio n. 2
0
 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)