From f2ac79dbf64c8604095737ef4e809a25ad63eacb Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Sun, 24 Nov 2024 11:50:18 +0100
Subject: Fix the test suite.

---
 tests/format/program.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tests/format/program.py b/tests/format/program.py
index 7a649b8..7027cdf 100644
--- a/tests/format/program.py
+++ b/tests/format/program.py
@@ -1,6 +1,7 @@
 
 from chrysacase import ChrysalideTestCase
 from pychrysalide import SourceEndian
+from pychrysalide.analysis.contents import MemoryContent
 #from pychrysalide.arch import vmpa, mrange
 from pychrysalide.format import ProgramFormat
 #from pychrysalide.format import BinSymbol
@@ -17,12 +18,16 @@ class TestProgramFormat(ChrysalideTestCase):
     def testCustomInstance(self):
         """Validate a full custom ProgramFormat implementation."""
 
+        data  = b'\x00\x00\x00\xef'
+        cnt = MemoryContent(data)
+
+
         class CustomFormat(ProgramFormat):
 
             def _get_endianness(self):
                 return SourceEndian.BIG
 
-        cf = CustomFormat()
+        cf = CustomFormat(cnt)
 
         self.assertEqual(cf.endianness, SourceEndian.BIG)
 
@@ -30,7 +35,7 @@ class TestProgramFormat(ChrysalideTestCase):
         class EmptyCustomFormat(ProgramFormat):
             pass
 
-        cf = EmptyCustomFormat()
+        cf = EmptyCustomFormat(cnt)
 
         self.assertEqual(cf.endianness, SourceEndian.LITTLE)
 
-- 
cgit v0.11.2-87-g4458