def test_strips_fingerprint(self): path = 'source.38976434f000bf447d2dc6980894986aaf4e82d0.js' self.assertEqual(strip_fingerprint(path), 'source.js')
def test_skips_paths_without_fingerprint(self): self.assertEqual(strip_fingerprint('source.js'), 'source.js')