def test_to_from_pkt(self): pkt = ts.to_pkt('UV', 5, 'still', ['1', '2', '3']) # Jon : HARDWF task, obs, still, args = ts.from_pkt(pkt) self.assertEqual(task, 'UV') # Jon : HARDWF self.assertEqual(obs, 5) self.assertEqual(still, 'still') self.assertEqual(args, ['1', '2', '3'])
def test_from_pkt(self): pkt = ts.pad('5') + ts.pad('UV') + ts.pad('4') + ts.pad('still') + ts.pad('1') # Jon : HARDWF task, obs, still, args = ts.from_pkt(pkt) self.assertEqual(task, 'UV') # Jon : HARDWF self.assertEqual(obs, 4) self.assertEqual(still, 'still') self.assertEqual(args, ['1'])
def test_from_pkt(self): pkt = ts.pad('5') + ts.pad('UV') + ts.pad('4') + \ ts.pad('still') + ts.pad('1') # Jon : HARDWF task, obs, still, args = ts.from_pkt(pkt) self.assertEqual(task, 'UV') # Jon : HARDWF self.assertEqual(obs, 4) self.assertEqual(still, 'still') self.assertEqual(args, ['1'])