py_test.go 840 B

123456789101112131415161718192021222324252627282930
  1. // +build x
  2. // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a MIT 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 running: go test -tags=x .
  7. // Look at test.py for how to setup your environment.
  8. import (
  9. "testing"
  10. )
  11. func TestMsgpackPythonGenStreams(t *testing.T) {
  12. doTestPythonGenStreams(t, testMsgpackH)
  13. }
  14. func TestCborPythonGenStreams(t *testing.T) {
  15. doTestPythonGenStreams(t, testCborH)
  16. }
  17. func TestMsgpackRpcSpecGoClientToPythonSvc(t *testing.T) {
  18. doTestMsgpackRpcSpecGoClientToPythonSvc(t)
  19. }
  20. func TestMsgpackRpcSpecPythonClientToGoSvc(t *testing.T) {
  21. doTestMsgpackRpcSpecPythonClientToGoSvc(t)
  22. }