Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_lgx_tag_class(self):
tags = comm.GetTagList()
self.assertEqual(
isinstance(
tags.Value[0], LgxTag), True, "LgxTag not found in GetTagList")
def test_program_tag_list(self):
program_tags = comm.GetProgramTagList('Program:MainProgram')
self.assertEqual(program_tags.Status, 'Success', program_tags.Status)
self.assertEqual(
isinstance(program_tags, Response),
True, "Reponse class not found in GetProgramTagList")
self.assertEqual(
isinstance(program_tags.Value[0], LgxTag),
True, "LgxTag class not found in GetProgramTagList Value")
def parseLgxTag(packet, programName):
t = LgxTag()
length = unpack_from('> 13
t.Struct = (val & 0x8000) >> 15
if t.Array: