              if method_name.endswith('_post'):
                  method_map = 'post'
              else:
                  method_map = 'get'
              self.assertEqual(route.mapping[method_map], method_name)
  
      def test_list_and_detail_route_decorators(self):
          self._test_list_and_detail_route_decorators(DynamicListAndDetailViewSet)
  
      def test_inherited_list_and_detail_route_decorators(self):
 
</s> remove         self.assertIn('<uuid>', detail_url_pattern)
 </s> add         assert '<uuid>' in detail_url_pattern </s> remove         self.assertEqual(200, response.status_code)
        self.assertEqual(
            json.loads(response.content.decode('utf-8')),
            [
                {'uuid': '111', 'text': 'First'},
                {'uuid': '222', 'text': 'Second'}
            ]
        )
 </s> add         assert response.status_code == 200
        assert json.loads(response.content.decode('utf-8')) == [{'uuid': '111', 'text': 'First'},
                                                                {'uuid': '222', 'text': 'Second'}] </s> remove             self.assertEqual(expected[idx], self.urls[idx].regex.pattern)
 </s> add             assert expected[idx] == self.urls[idx].regex.pattern </s> remove         self.assertEqual(200, response.status_code)
        self.assertEqual(
            json.loads(response.content.decode('utf-8')),
            {
                'uuid': '111',
                'text': 'First'
            }
        )
 </s> add         assert response.status_code == 200
        assert json.loads(response.content.decode('utf-8')) == {'uuid': '111', 'text': 'First'}
            assert route.mapping[method_map] == method_name
              if method_name.endswith('_post'):
                  method_map = 'post'
              else:
                  method_map = 'get'
            assert route.mapping[method_map] == method_name
  
      def test_list_and_detail_route_decorators(self):
          self._test_list_and_detail_route_decorators(DynamicListAndDetailViewSet)
  
      def test_inherited_list_and_detail_route_decorators(self):
keep keep keep keep replace keep keep keep keep keep
 Refactor router tests to pytest style 
tests/test_routers.py