def test_waveform_to_string(self): s = 'abcdefg' asc = [ord(c) for c in s] self.assertEquals(epics_utils.waveform_to_string(asc), s) asc = [ord(c) for c in s] + [0, 0, 0] self.assertEquals(epics_utils.waveform_to_string(asc), s)
def test_waveform_to_string(): s = 'abcdefg' asc = [ord(c) for c in s] assert epics_utils.waveform_to_string(asc) == s asc = [ord(c) for c in s] + [0, 0, 0] assert epics_utils.waveform_to_string(asc) == s
def test_waveform_to_string(): s = 'abcdefg' asc = [ord(c) for c in s] assert epics_utils.waveform_to_string(asc) == s asc = [ord(c) for c in s] + [0, 0, 0] assert epics_utils.waveform_to_string(asc) == s