  
      def test_custom_lookup_field_route(self):
          detail_route = notes_router.urls[-1]
          detail_url_pattern = detail_route.regex.pattern
          self.assertIn('<uuid>', detail_url_pattern)
  
      def test_retrieve_lookup_field_list_view(self):
          response = self.client.get('/example/notes/')
          self.assertEqual(
              response.data,
 
</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(route.mapping[method_map], method_name)
 </s> add             assert route.mapping[method_map] == method_name </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'} </s> remove             self.assertEqual(expected[idx], self.urls[idx].regex.pattern)
 </s> add             assert expected[idx] == self.urls[idx].regex.pattern
        assert '<uuid>' in detail_url_pattern
  
      def test_custom_lookup_field_route(self):
          detail_route = notes_router.urls[-1]
          detail_url_pattern = detail_route.regex.pattern
        assert '<uuid>' in detail_url_pattern
  
      def test_retrieve_lookup_field_list_view(self):
          response = self.client.get('/example/notes/')
          self.assertEqual(
              response.data,
keep keep keep keep replace keep keep keep keep keep
 Refactor router tests to pytest style 
tests/test_routers.py