+ def test_SeeCancelMotion(self):
+ self.db_sampledata()
+
+ motion='g1.20200402.004'
+ result = self.app.get('/motion/' + motion, environ_base={'USER_ROLES': user}, follow_redirects=True)
+ testtext= '<button type="submit" class="btn btn-danger" name="cancel" value="cancel" id="cancel">Cancel</button>'
+ self.assertIn(str.encode(testtext), result.data)
+
+ motion='g1.20200402.004'
+ result = self.app.get('/motion/' + motion, environ_base={'USER_ROLES': 'testuser/vote:*'}, follow_redirects=True)
+ testtext= '<button type="submit" class="btn btn-danger" name="cancel" value="cancel" id="cancel">Cancel</button>'
+ self.assertNotIn(str.encode(testtext), result.data)
+