Esempio n. 1
0
 def test_c_write(self):
     global backup
     spa_phone.write(test_ip, backup)
     time.sleep(recovery_time)
     assert spa_phone.read(test_ip) == backup
Esempio n. 2
0
 def test_a_backup(self):
     global backup
     backup = spa_phone.read(test_ip)
Esempio n. 3
0
 def test_b_clear(self):
     spa_phone.write(test_ip, [])
     time.sleep(recovery_time)
     assert len(spa_phone.read(test_ip)) == 0