Changes between Initial Version and Version 1 of Ticket #30089, comment 3


Ignore:
Timestamp:
Jan 17, 2019, 11:50:34 AM (6 years ago)
Author:
Tim Graham

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30089, comment 3

    initial v1  
    1 Apologies, typo in my original test. Good catch. Updated test and failure below
    2 
    3 {{{#!python
    4 
    5     def test_post_multi_select(self):
    6         "POST SELECT multiple data to a view"
    7         post_data = QueryDict(mutable=True)
    8         post_data.update({'value':37})
    9         post_data.update({'value':38})
    10         response = self.client.post('/post_view/', post_data)
    11 
    12         # Check some response details
    13         self.assertEqual(response.status_code, 200)
    14         self.assertEqual(response.context['data'], ['37', '38'])
    15         self.assertEqual(response.templates[0].name, 'POST Template')
    16         self.assertContains(response, 'Data received')
    17 
    18 }}}
     1Apologies, typo in my original test. Good catch. Updated test in description and failure below:
    192
    203{{{#!bash
Back to Top