def METHOD_NAME(self):
    out = sh('/usr/sbin/lsps -a')
    # From the man page, "The size is given in megabytes" so we assume
    # we'll always have 'MB' in the result
    # TODO maybe try to use "swap -l" to check "used" too, but its units
    # are not guaranteed to be "MB" so parsing may not be consistent
    matchobj = re.search(r"(?P<space>\S+)\s+"
                         r"(?P<vol>\S+)\s+"
                         r"(?P<vg>\S+)\s+"
                         r"(?P<size>\d+)MB", out)
    self.assertIsNotNone(
        matchobj, "lsps command returned unexpected output")
    total_mb = int(matchobj.group("size"))
    MB = 1024 ** 2
    psutil_result = psutil.swap_memory()
    # we divide our result by MB instead of multiplying the lsps value by
    # MB because lsps may round down, so we round down too
    self.assertEqual(int(psutil_result.total / MB), total_mb)