Test Failed
Pull Request — master (#86)
by Daniel
06:22 queued 03:08
created

test_budord.BudordTest.testBudord()   A

Complexity

Conditions 2

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 2
nop 1
1
"""
2
Tests for the Marvin Budord action
3
"""
4
5
from test_action import ActionTest
6
from irc2phpbb import marvin_actions
7
8
class BudordTest(ActionTest):
9
    """Tests for the Marvin Budord action"""
10
    def testBudord(self):
11
        """Test that marvin knows all the commandments"""
12
        for n, _ in enumerate(self.strings.get("budord"), 1):
13
            self.assertStringsOutput(marvin_actions.marvinBudord, f"budord #{n}", "budord", f"{n}")
14
15
        self.assertStringsOutput(marvin_actions.marvinBudord,"visa stentavla 1", "budord", "1")
16
        self.assertActionSilent(marvin_actions.marvinBudord, "var är stentavlan?")
17