def testParseBulkString(): parser = Parser() output = parser.parseBulkString(b'$6\r\nfoobar\r\n') assert output == "foobar"