def test_storage_exists_home_dir(self): file_name = "~/test.sme.sqlite" abs_file_name = os.path.expanduser(file_name) remove_file(abs_file_name) shutil.copy2("./test.sme.sqlite", abs_file_name) m = Model() result = m.storage_exists(abs_file_name) remove_file(abs_file_name) self.assertTrue(result)
def test_storage_exists(self): file_name = "./test.sme.sqlite" m = Model() result = m.storage_exists(file_name) self.assertTrue(result)