| Conditions | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | #! ../env/bin/python |
||
| 37 | def test_restricted_logged_in(self, testapp): |
||
| 38 | """ Tests if the restricted page returns a 200 |
||
| 39 | if the user is logged in |
||
| 40 | """ |
||
| 41 | |||
| 42 | testapp.post('/login', data=dict( |
||
| 43 | username='admin', |
||
| 44 | password="supersafepassword" |
||
| 45 | ), follow_redirects=True) |
||
| 46 | |||
| 47 | rv = testapp.get('/restricted') |
||
| 48 | assert rv.status_code == 200 |
||
| 49 |