  
      def test_urls_limited_by_lookup_value_regex(self):
          expected = ['^notes/$', '^notes/(?P<uuid>[0-9a-f]{32})/$']
          for idx in range(len(expected)):
              self.assertEqual(expected[idx], self.urls[idx].regex.pattern)
  
  
  @override_settings(ROOT_URLCONF='tests.test_routers')
  class TestLookupUrlKwargs(TestCase):
      """
 
</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(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'}
            assert expected[idx] == self.urls[idx].regex.pattern
  
      def test_urls_limited_by_lookup_value_regex(self):
          expected = ['^notes/$', '^notes/(?P<uuid>[0-9a-f]{32})/$']
          for idx in range(len(expected)):
            assert expected[idx] == self.urls[idx].regex.pattern
  
  
  @override_settings(ROOT_URLCONF='tests.test_routers')
  class TestLookupUrlKwargs(TestCase):
      """
keep keep keep keep replace keep keep keep keep keep
 Refactor router tests to pytest style 
tests/test_routers.py