def METHOD_NAME(self):
    result = openmediavault.stringutils.binary_format(
        2048, precision=0, origin_unit='KiB', max_unit='MiB'
    )
    self.assertIsInstance(result, str)
    self.assertEqual(result, '2 MiB')