def test_4(self): self.assertEqual(".file", remove_file_extension(".file.1"))
def test_5(self): self.assertEqual("/a/b/c", remove_file_extension("/a/b/c.1"))
def test_1(self): self.assertEqual("file.1", remove_file_extension("file.1.2"))
def test_0(self): self.assertEqual("file", remove_file_extension("file"))
def test_2(self): self.assertEqual("file", remove_file_extension("file.1"))
def test_3(self): self.assertEqual(".file", remove_file_extension(".file"))