allura
Revisión | 31c15aae9de8b44418fd0e24c1e6fe2746fe14b7 (tree) |
---|---|
Tiempo | 2012-07-18 04:25:21 |
Autor | Igor Bondarenko <jetmind2@gmai...> |
Commiter | Cory Johns |
[#4481] ticket:102 Fix test
@@ -833,6 +833,13 @@ class TestFunctionalController(TrackerTestController): | ||
833 | 833 | |
834 | 834 | def test_vote(self): |
835 | 835 | r = self.new_ticket(summary='test vote').follow() |
836 | + assert_false(r.html.find('div', {'id': 'vote'})) | |
837 | + | |
838 | + # enable voting | |
839 | + self.app.post('/admin/bugs/set_options', | |
840 | + params={'EnableVoting': 'true'}) | |
841 | + | |
842 | + r = self.app.get('/bugs/1/') | |
836 | 843 | votes_up = r.html.find('span', {'id': 'votes-up'}) |
837 | 844 | votes_down = r.html.find('span', {'id': 'votes-down'}) |
838 | 845 | assert_in('0', str(votes_up)) |