make the frontend resume when an sdr device becomes present

This commit is contained in:
Jakob Ketterl
2021-03-21 00:14:18 +01:00
parent 8fa1796037
commit acee318dae
4 changed files with 25 additions and 0 deletions

View File

@ -42,6 +42,18 @@ class PropertyStackTest(TestCase):
om.removeLayer(high_pm)
self.assertEqual(om["testkey"], "low value")
def testLayerRemovalByPriority(self):
om = PropertyStack()
low_pm = PropertyLayer()
high_pm = PropertyLayer()
low_pm["testkey"] = "low value"
high_pm["testkey"] = "high value"
om.addLayer(1, low_pm)
om.addLayer(0, high_pm)
self.assertEqual(om["testkey"], "high value")
om.removeLayerByPriority(0)
self.assertEqual(om["testkey"], "low value")
def testPropertyChange(self):
layer = PropertyLayer()
stack = PropertyStack()