summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core/tests/cases/oetag.py
blob: 52f97dfda61f69e53db92afac9c234ceeaf4f7ed (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
28
29
30
31
32
33
34
35
36
37
38
#
# Copyright (C) 2016 Intel Corporation
#
# SPDX-License-Identifier: MIT
#

from oeqa.core.case import OETestCase
from oeqa.core.decorator import OETestTag

class TagTest(OETestCase):
    @OETestTag('goodTag')
    def testTagGood(self):
        self.assertTrue(True, msg='How is this possible?')

    @OETestTag('otherTag')
    def testTagOther(self):
        self.assertTrue(True, msg='How is this possible?')

    @OETestTag('otherTag', 'multiTag')
    def testTagOtherMulti(self):
        self.assertTrue(True, msg='How is this possible?')

    def testTagNone(self):
        self.assertTrue(True, msg='How is this possible?')

@OETestTag('classTag')
class TagClassTest(OETestCase):
    @OETestTag('otherTag')
    def testTagOther(self):
        self.assertTrue(True, msg='How is this possible?')

    @OETestTag('otherTag', 'multiTag')
    def testTagOtherMulti(self):
        self.assertTrue(True, msg='How is this possible?')

    def testTagNone(self):
        self.assertTrue(True, msg='How is this possible?')