Jason Paryani
51c4bb1bb6
Add tuple setting test
2017-04-09 20:57:33 -07:00
Kamal Marhubi
b31b53b6a7
Add test for setting a field from a list
2015-05-30 19:45:58 -04:00
Jason Paryani
a5bf532d53
Add init
method to lists
2015-05-04 11:00:25 -07:00
Jason Paryani
b9c9c6bc5c
Fix for upstream changes in kj::Exception
...
* Change from using Nature/Durability to Type
* Prefer to raise KjException directly instead of Value/RuntimError.
* Will still raise AttributeError appropriately.
2014-11-30 14:27:10 -08:00
Jason Paryani
b7fd9b526d
Fix typo in test_struct
2014-10-27 16:31:55 -07:00
Jason Paryani
1d19d9f407
Handle ordered option failing under Python 2.6
2014-10-27 16:11:19 -07:00
Jason Paryani
ac5590cfc1
Add tests for verbose and ordered options for to_dict
2014-10-27 15:37:38 -07:00
Jason Paryani
ea1be42252
Add {_get,_set,_has,_init}_by_field methods for faster field access
2014-09-03 15:20:26 -07:00
Jason Paryani
5befda532f
Fix test_to_dict_enum
under Python3
2014-06-26 01:07:16 -07:00
Jason Paryani
3a0eaacc9d
Fix to_dict
not converting enums to strings
...
Fixes #28
2014-06-26 00:53:16 -07:00
Jason Paryani
1c4b8d0135
Skip failing test if LIBCAPNP_VERSION < v0.5.0
2014-02-18 17:48:43 -08:00
Jason Paryani
307fcbf4e7
Fix problem with uninitialized unions in _from_dict
2014-02-18 17:34:34 -08:00
Jason Paryani
dceb437c44
Update tests with new which enum
2014-02-13 22:08:15 -08:00
Jason Paryani
68a45a194b
Add test showing off using a dictionary in new_message
2014-01-15 10:37:25 -08:00
Jason Paryani
f89af26fc3
Fix tests for change in exception type
2014-01-14 09:44:21 -08:00
Jason Paryani
e7e95abeed
Allow setting of fields with python dicts.
...
This change was a bit complicated because of a bug in cython fused
types. I had to flatten DynamicStruct.Builder to DynamicStruct_Builder
in order to get fused template specialization working.
2014-01-13 16:28:05 -08:00
Jason Paryani
540ed4cdba
Don't force utf8 encoding for unicode strings
2013-12-18 21:57:57 -08:00
Jason Paryani
20d7104111
Fix another typo in test
2013-12-18 13:10:33 -08:00
Jason Paryani
34e98881b1
Fix failing test
2013-12-18 13:06:52 -08:00
Jason Paryani
e9a8354676
Fix problems with null characters in Text/Data fields. Fixes #19
2013-12-18 12:39:56 -08:00
Jason Paryani
0892a63b23
Change tests to use tempfile
2013-12-09 17:16:39 -08:00
Jason Paryani
83e30f5a30
Add from_dict
2013-09-03 01:00:52 -07:00
Jason Paryani
c900690b96
Fix bug in exception handling for which(). Also standardize exceptions
...
to always be ValueError. Add the beginnings of to_dict()
2013-09-03 00:25:32 -07:00