Completed
Push — master ( f46766...a9fd17 )
by Jace
8s
created

TestProgramConfig   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 9
rs 10
wmc 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_init() 0 5 3
1
# pylint: disable=misplaced-comparison-constant,no-self-use
0 ignored issues
show
introduced by
Bad option value 'misplaced-comparison-constant'
Loading history...
2
3
from mine.config import ProgramConfig
4
5
6
class TestProgramConfig:
7
8
    """Unit tests for the program configuration class."""
9
10
    def test_init(self):
11
        """Verify a new program configuration is blank."""
12
        config = ProgramConfig()
13
        assert not config.applications
14
        assert not config.computers
15