'With storage classes having several file extension patterns, only the
files matching a specific file pattern should be affected by the
substitution (#19670).'

def test_multi_extension_patterns(self):

    relpath = self.cached_file_path('cached/import.css')
    self.assertEqual(relpath, 'cached/import.f53576679e5a.css')
    with storage.staticfiles_storage.open(relpath) as relfile:
        self.assertIn('import    url("styles.5e0040571e1a.css")', relfile.read())
    relpath = self.cached_file_path('cached/test.js')
    self.assertEqual(relpath, 'cached/test.388d7a790d46.js')
    with storage.staticfiles_storage.open(relpath) as relfile:
        self.assertIn('JS_URL("import.f53576679e5a.css")', relfile.read())
