66from reframe .core .exceptions import ContainerError
77
88
9- class _ContainerPlatformTest :
9+ class _ContainerPlatformTest ( abc . ABC ) :
1010 @abc .abstractmethod
1111 def create_container_platform (self ):
1212 pass
@@ -30,8 +30,8 @@ def test_mount_points(self):
3030 ('/path/two' , '/two' )]
3131 self .container_platform .commands = ['cmd1' , 'cmd2' ]
3232 self .container_platform .workdir = '/stagedir'
33- self . assertEqual (self .exp_cmd_mount_points ,
34- self .container_platform .emit_launch_commands ())
33+ assert (self .exp_cmd_mount_points ==
34+ self .container_platform .emit_launch_cmds ())
3535
3636 def test_missing_image (self ):
3737 self .container_platform .commands = ['cmd' ]
@@ -49,8 +49,8 @@ def test_custom_registry(self):
4949 self .container_platform .commands = ['cmd' ]
5050 self .container_platform .mount_points = [('/path/one' , '/one' )]
5151 self .container_platform .workdir = '/stagedir'
52- self . assertEqual (self .exp_cmd_custom_registry ,
53- self .container_platform .emit_launch_commands ())
52+ assert (self .exp_cmd_custom_registry ==
53+ self .container_platform .emit_launch_cmds ())
5454
5555
5656class TestDocker (_ContainerPlatformTest , unittest .TestCase ):
0 commit comments