summaryrefslogtreecommitdiffstats
path: root/testing/marionette/harness/marionette_harness/tests/unit/test_report.py
blob: a876888dee2691d7748412ccc53fa0887347318b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from marionette_harness import (
    expectedFailure,
    MarionetteTestCase,
    skip,
    unexpectedSuccess,
)


class TestReport(MarionetteTestCase):
    def test_pass(self):
        assert True

    @skip("Skip Message")
    def test_skip(self):
        assert False

    @expectedFailure
    def test_error(self):
        raise Exception()

    @unexpectedSuccess
    def test_unexpected_pass(self):
        assert True