Mercurial > farol
comparison tests/testBranches.py @ 79:2c7786d7d14e
Fix broken test
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Thu, 09 Oct 2014 12:16:16 +0200 |
parents | 4a9f23230eba |
children | c00f20bd90ba |
comparison
equal
deleted
inserted
replaced
78:264d4579f6bf | 79:2c7786d7d14e |
---|---|
29 def testAddBranch(self): | 29 def testAddBranch(self): |
30 rv = self.createDoc('Title', 'Type') | 30 rv = self.createDoc('Title', 'Type') |
31 self.assertEqual(rv.status_code, 200) | 31 self.assertEqual(rv.status_code, 200) |
32 rv = self.app.post('/producttree/create') | 32 rv = self.app.post('/producttree/create') |
33 rv = self.app.get('/producttree/branch/add') | 33 rv = self.app.get('/producttree/branch/add') |
34 rv = self.app.post('/producttree/branch/add', data=dict(type="Vendor", name="SecPod")) | 34 rv = self.app.post('/producttree/branch/add', data=dict(type="Vendor", name="SecPod", parent="")) |
35 | 35 |
36 def testAddTwoBranch(self): | 36 def testAddTwoBranch(self): |
37 rv = self.createDoc('Title', 'Type') | 37 rv = self.createDoc('Title', 'Type') |
38 self.assertEqual(rv.status_code, 200) | 38 self.assertEqual(rv.status_code, 200) |
39 rv = self.app.post('/producttree/create') | 39 rv = self.app.post('/producttree/create') |