def test_trim(self): self.assertEqual(trim_fragment("https://hello/frag#top"), "https://hello/frag")
def test_multiple(self): self.assertEqual(trim_fragment("https://hello/frag#top#of#the#morning"), "https://hello/frag")
def test_fragless(self): self.assertEqual(trim_fragment("https://hello/world"), "https://hello/world")