@@ -1525,20 +1525,21 @@ def testCSVExport(self):
15251525 # call export version that outputs names
15261526 actions .ExportCSVAction (cl ).handle ()
15271527 #print(output.getvalue())
1528- self .assertEquals ('id,title,status,keyword,assignedto,nosy\r \n '
1529- '1,foo1,deferred,,"Contrary, Mary","Bork, Chef;demo;Contrary, Mary"\r \n '
1530- '2,bar2,unread,keyword1;keyword2,"Bork, Chef","Bork, Chef"\r \n '
1531- '3,baz32,need-eg,,,\r \n ' ,
1532-
1533- output .getvalue ())
1528+ should_be = ('id,title,status,keyword,assignedto,nosy\r \n '
1529+ '1,foo1,deferred,,"Contrary, Mary","Bork, Chef;Contrary, Mary;demo"\r \n '
1530+ '2,bar2,unread,keyword1;keyword2,"Bork, Chef","Bork, Chef"\r \n '
1531+ '3,baz32,need-eg,,,\r \n ' )
1532+ #print(should_be)
1533+ #print(output.getvalue())
1534+ self .assertEqual (output .getvalue (), should_be )
15341535 output = StringIO ()
15351536 cl .request = MockNull ()
15361537 cl .request .wfile = output
15371538 # call export version that outputs id numbers
15381539 actions .ExportCSVWithIdAction (cl ).handle ()
1539- # print(output.getvalue())
1540+ print (output .getvalue ())
15401541 self .assertEquals ('id,title,status,keyword,assignedto,nosy\r \n '
1541- "1,foo1,2,[],4,\" ['3', '5 ', '4 ']\" \r \n "
1542+ "1,foo1,2,[],4,\" ['3', '4 ', '5 ']\" \r \n "
15421543 "2,bar2,1,\" ['1', '2']\" ,3,['3']\r \n "
15431544 '3,baz32,4,[],None,[]\r \n ' ,
15441545 output .getvalue ())
0 commit comments