Switch to unified view

a/Allura/allura/tests/test_scripts.py b/Allura/allura/tests/test_scripts.py
...
...
61
        self._command(
61
        self._command(
62
            'test.ini', '../scripts/backup_project.py', 'test', self.backup_dir)
62
            'test.ini', '../scripts/backup_project.py', 'test', self.backup_dir)
63
        self._command(
63
        self._command(
64
            'test.ini', '../scripts/purge_project.py', 'test')
64
            'test.ini', '../scripts/purge_project.py', 'test')
65
        self._command(
65
        self._command(
66
            'test.ini', '../scripts/restore_project.py', self.backup_dir, 'test2', 'test2')
66
            'test.ini', '../scripts/restore_project.py', self.backup_dir, 'test3', 'test3')
67
        assert M.Project.query.find(dict(shortname='test')).count() == 0
67
        assert M.Project.query.find(dict(shortname='test')).count() == 0
68
        assert M.Project.query.find(dict(shortname='test2')).count() == 1
68
        assert M.Project.query.find(dict(shortname='test3')).count() == 1
69
        ThreadLocalORMSession.close_all()
69
        ThreadLocalORMSession.close_all()
70
        p2= M.Project.query.get(_id=p1._id)
70
        p2= M.Project.query.get(_id=p1._id)
71
        assert p2.shortname == 'test2'
71
        assert p2.shortname == 'test3'
72
        assert p2.app_configs
72
        assert p2.app_configs
73
73
74
74
75
    def _command(self, *args):
75
    def _command(self, *args):
76
        try:
76
        try: