def test_encode_with_single_digit_checksum(): repstr = "@01 0 OK IDLE -- 7z:0C\r\n" a = AsciiReply(repstr) assert (a.encode() == repstr)
def test_encode_with_message_id(): repstr = "@01 0 12 OK IDLE -- 0\r\n" a = AsciiReply(repstr) assert (a.encode() == repstr)
def test_encode_with_checksum(): repstr = "@01 0 OK IDLE -- 0:8D\r\n" a = AsciiReply(repstr) assert (a.encode() == repstr)
def test_encoding_strings(): reply_string = "@01 0 OK IDLE -- 0\r\n" a = AsciiReply(reply_string) assert (a.encode() == reply_string)
def test_encode_with_single_digit_checksum(): repstr = "@01 0 OK IDLE -- 7z:0C\r\n" a = AsciiReply(repstr) assert(a.encode() == repstr)
def test_encode_with_checksum(): repstr = "@01 0 OK IDLE -- 0:8D\r\n" a = AsciiReply(repstr) assert(a.encode() == repstr)
def test_encode_with_message_id(): repstr = "@01 0 12 OK IDLE -- 0\r\n" a = AsciiReply(repstr) assert(a.encode() == repstr)
def test_encoding_strings(): reply_string = "@01 0 OK IDLE -- 0\r\n" a = AsciiReply(reply_string) assert(a.encode() == reply_string)