def test_decode_options_invalid(self): """ Testing whether decoding the options raises InvalidPacketException if an invalid option is found """ _decode_options({}, "blksize\0a\0", 0)
def test_decode_options_no_option(self): """ Testing whether decoding the options raises InvalidPacketException if no options are found """ _decode_options({}, "\0a\0", 0)
def test_decode_options_no_value(self): """ Testing whether decoding the options raises InvalidPacketException if no value is found """ _decode_options({}, "b\0\0", 0)
def test_decode_options_unknown(self): """ Testing whether decoding the options raises InvalidOptionException if an invalid option is found """ _decode_options({}, "b\0a\0", 0)