"""Tests for handling failed builds"""

from dxr.testing import SingleFileTestCase, CommandFailure


class BuildFailureTests(SingleFileTestCase):
    source = r"""A bunch of garbage"""

    @classmethod
    def setup_class(cls):
        """Make sure a failed build returns a non-zero status code."""
        try:
            super(BuildFailureTests, cls).setup_class()
        except CommandFailure:
            pass
        else:
            raise AssertionError('A failed build returned an exit code of 0.')

    def test_nothing(self):
        """A null test just to make the setup method run"""

5bc4a8f874502e09e49943d9e52d54b60b3d5f9a
<mask token>


class BuildFailureTests(SingleFileTestCase):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class BuildFailureTests(SingleFileTestCase):
    <mask token>

    @classmethod
    def setup_class(cls):
        """Make sure a failed build returns a non-zero status code."""
        try:
            super(BuildFailureTests, cls).setup_class()
        except CommandFailure:
            pass
        else:
            raise AssertionError('A failed build returned an exit code of 0.')

    def test_nothing(self):
        """A null test just to make the setup method run"""

<mask token>


class BuildFailureTests(SingleFileTestCase):
    source = 'A bunch of garbage'

    @classmethod
    def setup_class(cls):
        """Make sure a failed build returns a non-zero status code."""
        try:
            super(BuildFailureTests, cls).setup_class()
        except CommandFailure:
            pass
        else:
            raise AssertionError('A failed build returned an exit code of 0.')

    def test_nothing(self):
        """A null test just to make the setup method run"""

<mask token>
from dxr.testing import SingleFileTestCase, CommandFailure


class BuildFailureTests(SingleFileTestCase):
    source = 'A bunch of garbage'

    @classmethod
    def setup_class(cls):
        """Make sure a failed build returns a non-zero status code."""
        try:
            super(BuildFailureTests, cls).setup_class()
        except CommandFailure:
            pass
        else:
            raise AssertionError('A failed build returned an exit code of 0.')

    def test_nothing(self):
        """A null test just to make the setup method run"""

"""Tests for handling failed builds"""

from dxr.testing import SingleFileTestCase, CommandFailure


class BuildFailureTests(SingleFileTestCase):
    source = r"""A bunch of garbage"""

    @classmethod
    def setup_class(cls):
        """Make sure a failed build returns a non-zero status code."""
        try:
            super(BuildFailureTests, cls).setup_class()
        except CommandFailure:
            pass
        else:
            raise AssertionError('A failed build returned an exit code of 0.')

    def test_nothing(self):
        """A null test just to make the setup method run"""
