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

test_budord   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 10
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A BudordTest.testBudord() 0 7 2
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