def testTftpPacketACK(self):
    log.debug('===> Running testcase testTftpPacketACK')
    ack = tftpy.TftpPacketACK()
    ack.blocknumber = 6
    ack.encode()
    self.assert_((ack.buffer != None), 'Buffer populated')
    ack.decode()
    self.assertEqual(ack.opcode, 4, 'ACK opcode is correct')
    self.assertEqual(ack.blocknumber, 6, 'ACK blocknumber correct')
def testTftpPacketACK(self):
    log.debug('===> Running testcase testTftpPacketACK')
    ack = tftpy.TftpPacketACK()
    ack.blocknumber = 6
    ack.encode()
    self.assert_((ack.buffer != None), 'Buffer populated')
    ack.decode()
    self.assertEqual(ack.opcode, 4, 'ACK opcode is correct')
    self.assertEqual(ack.blocknumber, 6, 'ACK blocknumber correct')