def METHOD_NAME(self):
    """Test for get_swap_size_linux()"""
    with open('/proc/swaps') as f:
        swapdev = f.read().split('\n')[1].split(' ')[0]
    if 0 == len(swapdev):
        self.skipTest('no active swap device detected')
    size = get_swap_size_linux(swapdev)
    self.assertIsInteger(size)
    self.assertGreater(size, 1024 ** 2)
    logger.debug("size of swap '%s': %d B (%d MB)",
                 swapdev, size, size / (1024 ** 2))
    with open('/proc/swaps') as f:
        proc_swaps = f.read()
    size2 = get_swap_size_linux(swapdev, proc_swaps)
    self.assertEqual(size, size2)