From a50a83f073df4b3784d468d36d58111404505ffe Mon Sep 17 00:00:00 2001 From: Keiji Muraishi Date: Wed, 31 Mar 2010 17:29:07 +0900 Subject: should raise TypeError on find unsupported value --- test/test_except.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/test_except.py (limited to 'test') diff --git a/test/test_except.py b/test/test_except.py new file mode 100644 index 0000000..574728f --- /dev/null +++ b/test/test_except.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python +# coding: utf-8 + +from nose.tools import * +from msgpack import packs, unpacks + +import datetime + +def test_raise_on_find_unsupported_value(): + assert_raises(TypeError, packs, datetime.datetime.now()) + +if __name__ == '__main__': + from nose import main + main() -- cgit v1.2.1