py_test.go 813 B

1234567891011121314151617181920212223242526272829
  1. //+build x
  2. // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a BSD-style license found in the LICENSE file.
  4. package codec
  5. // These tests are used to verify msgpack and cbor implementations against their python libraries.
  6. // If you have the library installed, you can enable the tests back by removing the //+build ignore.
  7. import (
  8. "testing"
  9. )
  10. func TestMsgpackPythonGenStreams(t *testing.T) {
  11. doTestPythonGenStreams(t, "msgpack", testMsgpackH)
  12. }
  13. func TestCborPythonGenStreams(t *testing.T) {
  14. doTestPythonGenStreams(t, "cbor", testCborH)
  15. }
  16. func TestMsgpackRpcSpecGoClientToPythonSvc(t *testing.T) {
  17. doTestMsgpackRpcSpecGoClientToPythonSvc(t)
  18. }
  19. func TestMsgpackRpcSpecPythonClientToGoSvc(t *testing.T) {
  20. doTestMsgpackRpcSpecPythonClientToGoSvc(t)
  21. }