Beispiel #1
0
 def test_encode_erlang(self):
     obj = OpaqueObject(b"data", Atom(b"erlang"))
     self.assertEqual(b"data", obj.encode())
Beispiel #2
0
 def test_encode_erlang(self):
     obj = OpaqueObject("data", Atom("erlang"))
     self.assertEqual("data", obj.encode())
Beispiel #3
0
 def test_encode(self):
     obj = OpaqueObject(b"data", Atom(b"language"))
     term = Atom(b"$erlport.opaque"), Atom(b"language"), b"data"
     self.assertEqual(erlterms.encode_term(term), obj.encode())
Beispiel #4
0
 def test_encode(self):
     obj = OpaqueObject("data", Atom("language"))
     term = Atom("$erlport.opaque"), Atom("language"), "data"
     self.assertEqual(erlterms.encode_term(term), obj.encode())