test dict api for RepliesTest fixed (conversation returns all comments, replies return only top level comments).
svn path=/plone.app.discussion/trunk/; revision=27088
This commit is contained in:
		
							parent
							
								
									cc45041a97
								
							
						
					
					
						commit
						a3ac44763b
					
				| @ -423,8 +423,8 @@ class RepliesTest(PloneTestCase): | |||||||
| 
 | 
 | ||||||
|         # TODO: This isn't correct. Only the two top-level comments |         # TODO: This isn't correct. Only the two top-level comments | ||||||
|         # should be there |         # should be there | ||||||
|         #self.assertEquals(conversation.total_comments, 2) |  | ||||||
|         self.assertEquals(conversation.total_comments, 6) |         self.assertEquals(conversation.total_comments, 6) | ||||||
|  |         self.assertEquals(len(replies), 2) | ||||||
| 
 | 
 | ||||||
| def test_suite(): | def test_suite(): | ||||||
|     return unittest.defaultTestLoader.loadTestsFromName(__name__) |     return unittest.defaultTestLoader.loadTestsFromName(__name__) | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user