[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/WanderWalker/msgpack/java-0.5.1/python/test/test_case.py [Back]  [Original]

#!/usr/bin/env python
# coding: utf-8

from nose import main
from nose.tools import *
from msgpack import packs, unpacks


def check(length, obj):
    v = packs(obj)
    assert_equal(len(v), length, "%r length should be %r but get %r" % (obj, length, len(v)))
    assert_equal(unpacks(v), obj)

def test_1():
    for o in [None, True, False, 0, 1, (1 

Web Proxy Viewer  |  New URL  |  Original Page