                  self.assertRaises(NoReverseMatch, lambda: reverse('first'))
                  self.client.get(reverse('second'))
  
              self.client.get(reverse('first'))
              self.assertRaises(NoReverseMatch, lambda: reverse('second'))
  
          self.assertRaises(NoReverseMatch, lambda: reverse('first'))
          self.assertRaises(NoReverseMatch, lambda: reverse('second'))
  
      def test_override_media_root(self):
 
</s> remove                 self.assertRaises(NoReverseMatch, lambda: reverse('first'))
 </s> add                 with self.assertRaises(NoReverseMatch):
                    reverse('first') </s> remove             self.assertRaises(NoReverseMatch, lambda: reverse('second'))
 </s> add             with self.assertRaises(NoReverseMatch):
                reverse('second') </s> remove         self.assertRaises(NoReverseMatch, lambda: reverse('first'))
        self.assertRaises(NoReverseMatch, lambda: reverse('second'))
 </s> add         with self.assertRaises(NoReverseMatch):
            reverse('first')
        with self.assertRaises(NoReverseMatch):
            reverse('second') </s> remove         self.assertRaises(NoReverseMatch, lambda: reverse('first'))
        self.assertRaises(NoReverseMatch, lambda: reverse('second'))
 </s> add         with self.assertRaises(NoReverseMatch):
            reverse('first')
        with self.assertRaises(NoReverseMatch):
            reverse('second') </s> remove         self.assertRaises(NoReverseMatch, reverse, 'inner-nothing')
        self.assertRaises(NoReverseMatch, reverse, 'inner-nothing', args=[37, 42])
        self.assertRaises(NoReverseMatch, reverse, 'inner-nothing', kwargs={'arg1': 42, 'arg2': 37})
 </s> add         with self.assertRaises(NoReverseMatch):
            reverse('inner-nothing')
        with self.assertRaises(NoReverseMatch):
            reverse('inner-nothing', args=[37, 42])
        with self.assertRaises(NoReverseMatch):
            reverse('inner-nothing', kwargs={'arg1': 42, 'arg2': 37})
            with self.assertRaises(NoReverseMatch):
                reverse('second')
                  self.assertRaises(NoReverseMatch, lambda: reverse('first'))
                  self.client.get(reverse('second'))
  
              self.client.get(reverse('first'))
            with self.assertRaises(NoReverseMatch):
                reverse('second')
  
          self.assertRaises(NoReverseMatch, lambda: reverse('first'))
          self.assertRaises(NoReverseMatch, lambda: reverse('second'))
  
      def test_override_media_root(self):
keep keep keep keep replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/test_utils/tests.py