Failed Conditions
Pull Request — master (#2076)
by Abdeali
02:04
created

GlobalBearTest.test_api()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 3
rs 10
1
import unittest
2
3
from coalib.bears.GlobalBear import BEAR_KIND, GlobalBear
4
from coalib.settings.Section import Section
5
6
7
class GlobalBearTest(unittest.TestCase):
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable unittest does not seem to be defined.
Loading history...
8
9
    def test_api(self):
10
        test_object = GlobalBear(0, Section("name"), None)
11
        self.assertRaises(NotImplementedError, test_object.run)
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable NotImplementedError does not seem to be defined.
Loading history...
Comprehensibility Best Practice introduced by
The variable test_object does not seem to be defined.
Loading history...
12
13
    def test_kind(self):
14
        self.assertEqual(GlobalBear.kind(), BEAR_KIND.GLOBAL)
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable BEAR_KIND does not seem to be defined.
Loading history...
15