      def test_detail_view(self):
          response = self.client.get('/api/actions/1/')
          view = response.view
  
          expected = OrderedDict([
              ('Custom detail action', 'http://testserver/api/actions/1/custom_detail_action/'),
              ('Detail action', 'http://testserver/api/actions/1/detail_action/'),
              ('Wrapped detail action', 'http://testserver/api/actions/1/wrapped_detail_action/'),
              # "Unresolvable detail action" excluded, since it's not resolvable
          ])
  
          self.assertEqual(view.get_extra_action_url_map(), expected)
  
 
</s> remove         expected = OrderedDict([
            ('Custom list action', 'http://testserver/api/actions/custom_list_action/'),
            ('List action', 'http://testserver/api/actions/list_action/'),
            ('Wrapped list action', 'http://testserver/api/actions/wrapped_list_action/'),
        ])
 </s> add         expected = {
            'Custom list action': 'http://testserver/api/actions/custom_list_action/',
            'List action': 'http://testserver/api/actions/list_action/',
            'Wrapped list action': 'http://testserver/api/actions/wrapped_list_action/',
        } </s> remove         expected = OrderedDict([(1, 'Red Color'), (2, 'Yellow Color'), (3, 'Green Color')])
 </s> add         expected = {1: 'Red Color', 2: 'Yellow Color', 3: 'Green Color'} </s> remove         expected = OrderedDict([(1, 'My Red Color'), (2, 'My Yellow Color'), (3, 'My Green Color')])
 </s> add         expected = {1: 'My Red Color', 2: 'My Yellow Color', 3: 'My Green Color'} </s> remove     properties = OrderedDict([
        (field.name, field.schema or coreschema.String())
 </s> add     properties = {
        field.name: field.schema or coreschema.String() </s> remove         return OrderedDict([
            (field_name, self.get_field_info(field))
 </s> add         return {
            field_name: self.get_field_info(field)
        expected = {
            'Custom detail action': 'http://testserver/api/actions/1/custom_detail_action/',
            'Detail action': 'http://testserver/api/actions/1/detail_action/',
            'Wrapped detail action': 'http://testserver/api/actions/1/wrapped_detail_action/',
      def test_detail_view(self):
          response = self.client.get('/api/actions/1/')
          view = response.view
  
        expected = {
            'Custom detail action': 'http://testserver/api/actions/1/custom_detail_action/',
            'Detail action': 'http://testserver/api/actions/1/detail_action/',
            'Wrapped detail action': 'http://testserver/api/actions/1/wrapped_detail_action/',
        expected = {
            'Custom detail action': 'http://testserver/api/actions/1/custom_detail_action/',
            'Detail action': 'http://testserver/api/actions/1/detail_action/',
            'Wrapped detail action': 'http://testserver/api/actions/1/wrapped_detail_action/',
        expected = {
            'Custom detail action': 'http://testserver/api/actions/1/custom_detail_action/',
            'Detail action': 'http://testserver/api/actions/1/detail_action/',
            'Wrapped detail action': 'http://testserver/api/actions/1/wrapped_detail_action/',
        expected = {
            'Custom detail action': 'http://testserver/api/actions/1/custom_detail_action/',
            'Detail action': 'http://testserver/api/actions/1/detail_action/',
            'Wrapped detail action': 'http://testserver/api/actions/1/wrapped_detail_action/',
              # "Unresolvable detail action" excluded, since it's not resolvable
          ])
  
          self.assertEqual(view.get_extra_action_url_map(), expected)
  
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Replaced `OrderedDict` with `dict` (#8964) 
tests/test_viewsets.py