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())
def test_encode(self): obj = OpaqueObject("data", Atom("language")) term = Atom("$erlport.opaque"), Atom("language"), "data" self.assertEqual(erlterms.encode_term(term), obj.encode())