use Test; BEGIN { plan tests => 6 } use Data::Dumper; use Inline::Python qw(py_bind_class py_bind_func py_eval ); py_eval <put("neil", { is => 'cool', was => 'stupid' }), undef); ok($o->get("foobar"), undef); my $r = $o->get("neil"); ok($r->{is}, 'cool'); ok($r->{was}, 'stupid');