def METHOD_NAME(self):
    """
    Test that most recent build area updates correctly for a build
    which is cancelled.
    """
    url = reverse('all-builds')
    build_request = self._create_build_request()
    build = build_request.build
    # cancel the build
    build_request.state = BuildRequest.REQ_CANCELLING
    build_request.save()
    self.get(url)
    # check cancelling state
    selector = '[data-latest-build-result="%s"] ' \
        '[data-build-state="Cancelling"]' % build.id
    element = self.wait_until_visible(selector)
    self.assertRegexpMatches(element.get_attribute('innerHTML'),
        'Cancelling the build', 'build should show "cancelling" status')
    # check cancelled state
    build.outcome = Build.CANCELLED
    build.save()
    self.get(url)
    selector = '[data-latest-build-result="%s"] ' \
        '[data-build-state="Cancelled"]' % build.id
    element = self.wait_until_visible(selector)
    self.assertRegexpMatches(element.get_attribute('innerHTML'),
        'Build cancelled', 'build should show "cancelled" status')