File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -508,6 +508,17 @@ def test_qistoph_pr_27(self):
508508 for key , value in pobj .items ():
509509 self .assertEqual (parent_map [key ], value )
510510
511+ def test_read_custom (self ):
512+ """
513+ Tests to verify that the super-class is properly read when a custom writer is involved.
514+ """
515+ ser = self .read_file ("issue60_custom_reader_endblock.ser" )
516+ pobj = javaobj .loads (ser )
517+ self .assertIsNone (pobj .superItems )
518+ self .assertIsNone (pobj .items )
519+ self .assertEquals (pobj .name , "test" )
520+ self .assertEquals (pobj .port , 443 )
521+
511522
512523# ------------------------------------------------------------------------------
513524
Original file line number Diff line number Diff line change @@ -644,17 +644,6 @@ def test_writeObject(self):
644644 self .assertEqual (expected ["custom_obj" ]["field_data" ], child_data )
645645 self .assertEqual (expected ["custom_obj" ]["annotations" ], super_data )
646646
647- def test_read_custom (self ):
648- """
649- Tests to verify that the super-class is properly read when a custom writer is involved.
650- """
651- ser = self .read_file ("issue60_custom_reader_endblock.ser" )
652- pobj = javaobj .loads (ser )
653- self .assertIsNone (pobj .superItems )
654- self .assertIsNone (pobj .items )
655- self .assertEquals (pobj .name , "test" )
656- self .assertEquals (pobj .port , 443 )
657-
658647# ------------------------------------------------------------------------------
659648
660649
You can’t perform that action at this time.
0 commit comments