Total Complexity | 1 |
Total Lines | 6 |
Duplicated Lines | 0 % |
Coverage | 100% |
1 | """Tests what happens if the config file is invalid.""" |
||
11 | 1 | class NoConfFileTestCase(TestCase): |
|
12 | 1 | def testNoConfFile(self): |
|
13 | 1 | self.app = TestApp(app) |
|
14 | 1 | obj = {'id': 'foobar', 'question': '42?', 'responses': []} |
|
15 | 1 | self.assertRaises(InvalidConfig, self.app.post_json, |
|
16 | '/', obj, status='*') |
||
17 | |||
33 |