コード例 #1
0
    def test_view_amf_request():
        v = cv.ViewAMF()

        p = tutils.test_data.path("data/amf01")
        assert v([], file(p, "rb").read(), sys.maxsize)

        p = tutils.test_data.path("data/amf02")
        assert v([], file(p, "rb").read(), sys.maxsize)
コード例 #2
0
 def test_view_amf(self):
     try:
         import pyamf
         v = cv.ViewAMF()
         p = tutils.test_data.path("data/test.amf")
         assert v([], file(p).read(), sys.maxint)
     except ImportError:
         pass
コード例 #3
0
 def test_view_amf_response():
     v = cv.ViewAMF()
     p = tutils.test_data.path("data/amf03")
     assert v([], file(p).read(), sys.maxint)