def test_set_name(self): name = "/tmp/does_not_exist_1.root" new_name = "/tmp/does_not_exist_2.root" f = File(name) self.assertEqual(f.get_name(), name) f.set_name(new_name) self.assertEqual(f.get_name(), new_name)
def test_file_equals(self): f1 = File("does_not_exist0.root") f2 = File("does_not_exist0.root") self.assertEqual(f1, f2.get_name()) self.assertEqual(f1, f2)