          holder.save()
          Inner3(dummy=42, holder=holder).save()
          change_url = reverse('admin:admin_inlines_holder3_change', args=(holder.id,))
          response = self.client.get(change_url)
          self.assertContains(response, 'my_awesome_inline_scripts.js')
  
      def test_all_inline_media(self):
          holder = Holder2(dummy=13)
          holder.save()
 
</s> remove         media = self.formset.media + self.opts.media
 </s> add         media = self.opts.media + self.formset.media
        self.assertEqual(
            response.context['inline_admin_formsets'][0].media._js,
            [
                'admin/js/vendor/jquery/jquery.min.js',
                'admin/js/jquery.init.js',
                'admin/js/inlines.min.js',
                'my_awesome_inline_scripts.js',
                'custom_number.js',
            ]
        )
          holder.save()
          Inner3(dummy=42, holder=holder).save()
          change_url = reverse('admin:admin_inlines_holder3_change', args=(holder.id,))
          response = self.client.get(change_url)
        self.assertEqual(
            response.context['inline_admin_formsets'][0].media._js,
            [
                'admin/js/vendor/jquery/jquery.min.js',
                'admin/js/jquery.init.js',
                'admin/js/inlines.min.js',
                'my_awesome_inline_scripts.js',
                'custom_number.js',
            ]
        )
          self.assertContains(response, 'my_awesome_inline_scripts.js')
  
      def test_all_inline_media(self):
          holder = Holder2(dummy=13)
          holder.save()
keep keep keep add keep keep keep keep keep
 Fixed #28866 -- Made InlineAdminFormSet include InlineModelAdmin's Media before its formset's Media.

This provides better backwards compatibility following refs #28377. 
tests/admin_inlines/tests.py