X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=tests%2Ftest_motion.py;fp=tests%2Ftest_motion.py;h=c1f996c3312966439f5bb4a5572cd5637372d350;hb=a53a0a3e8ad96f0805c05a45a06e15352dd45f72;hp=bb4acf01ffab6970583e37101fecd655cd77c682;hpb=e459f85797c9ace2a9367294a5be7435533d3d37;p=motion.git diff --git a/tests/test_motion.py b/tests/test_motion.py index bb4acf0..c1f996c 100644 --- a/tests/test_motion.py +++ b/tests/test_motion.py @@ -85,7 +85,9 @@ class GeneralTests(BasicTest): result = self.app.get('/', environ_base={'USER_ROLES': user}, follow_redirects=True) testtext= '
A third motion
'\ @@ -96,7 +98,9 @@ class GeneralTests(BasicTest): self.assertIn(str.encode(testtext), result.data) testtext= 'A second motion
'\ @@ -106,7 +110,9 @@ class GeneralTests(BasicTest): self.assertIn(str.encode(testtext), result.data) testtext= 'My special motion
'\ @@ -333,6 +339,8 @@ class CreateMotionTests(BasicTest): self.assertIn(str.encode(title), result.data) self.assertIn(str.encode(content), result.data) self.assertIn(str.encode('g1.'+datetime.today().strftime('%Y%m%d')+'.001'), result.data) + testtext='Vote' + self.assertIn(str.encode(testtext), result.data) title='My Motion1' content='My body1'