def test_multi_experiment_project(self):
        dirname = abspath(join(self.root_dir, "project3"))
        self.directories.append(dirname)

        p1 = create_multi_experiment_proj()
        p1.save(dirname)
        p2 = Project.from_dir(dirname)
        self.assert_(compare_projects(p1, p2))
    def test_empty_project(self):
        dirname = abspath(join(self.root_dir, "empty_project"))
        self.directories.append(dirname)

        p = Project(project_save_path=dirname)
        p.save()
        p2 = Project.from_dir(dirname)
        self.assert_(compare_projects(p, p2))
    def test_simple_project(self):
        dirname = abspath(join(self.root_dir, "simple_project"))
        self.directories.append(dirname)

        p1 = create_simple_project()
        p1.save(dirname)
        p2 = Project.from_dir(dirname)
        self.assert_(compare_projects(p1, p2))
 def assertEqual(self, first, second, **kw):
     if isinstance(first, Project) and isinstance(second, Project):
         self.assert_(compare_projects(first, second), **kw)
     else:
         super(ProjectPersistenceTestCase, self).assertEqual(first, second, **kw)