Skip to content
Snippets Groups Projects
Commit 6b39d87f authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-921: unittest added

parent 1ba35188
Branches
Tags
1 merge request!405Resolve L2SS-921 "Antenna names"
......@@ -389,3 +389,11 @@ class TestAntennafieldDevice(device_base.DeviceTestCase):
antenna_properties = {'Antenna_Quality': antenna_qualities, 'Antenna_Use': antenna_use}
with DeviceTestContext(antennafield.AntennaField, properties={**self.AT_PROPERTIES, **antenna_properties}, process=True) as proxy:
numpy.testing.assert_equal(numpy.array([True] + [False] * 95), proxy.Antenna_Usage_Mask_R)
def test_read_Antenna_Names(self):
""" Verify if Antenna_Names_R is correctly retrieved """
antenna_names = ["C0","C1","C2","C3","C4"]
antenna_properties = {'Antenna_Names' : antenna_names}
with DeviceTestContext(antennafield.AntennaField, properties={**self.AT_PROPERTIES, **antenna_properties}, process=True) as proxy:
for i in range(len(antenna_names)):
self.assertTrue(proxy.Antenna_Names_R[i]==f"C{i}")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment