def METHOD_NAME(self):
    """Verify that loop_setup with offset and size specified works as expected"""
    # now test with the offset and size
    succ, self.loop = BlockDev.loop_setup(self.dev_file, 10 * 1024**2, 50 * 1024**2)
    self.assertTrue(succ)
    self.assertTrue(self.loop)
    # should have size as specified
    with open("/sys/block/%s/size" % self.loop, "r") as f:
        size = int(f.read()) * 512
    self.assertEqual(size, 50 * 1024**2)
    succ = BlockDev.loop_teardown(self.loop)
    self.assertTrue(succ)