test/test_rubypython.rb in rubypython-0.2.1 vs test/test_rubypython.rb in rubypython-0.2.2
- old
+ new
@@ -47,11 +47,21 @@
def test_run_method
unpickled=nil
RubyPython.run do
cPickle=import "cPickle"
+ cPickle.inspect
unpickled=cPickle.loads("(dp1\nS'a'\nS'n'\ns(I1\nS'2'\ntp2\nI4\ns.")
end
assert_equal(unpickled,{"a"=>"n", [1, "2"]=>4})
assert(!RubyPython.stop)
+ end
+
+ def test_instance_method_delegation
+ RubyPython.start
+ wave=RubyPython.import "wave"
+ w=wave.open("test/test.wav","rb")
+ assert_equal(w.getframerate,9600)
+ w.close
+ RubyPython.stop
end
end