~ubuntu-branches/ubuntu/saucy/migrate/saucy-proposed

« back to all changes in this revision

Viewing changes to test/versioning/test_template.py

  • Committer: Bazaar Package Importer
  • Author(s): Jan Dittberner
  • Date: 2010-07-12 00:24:57 UTC
  • mfrom: (1.1.5 upstream) (2.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100712002457-4j2fdmco4u9kqzm5
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from test import fixture
2
 
from migrate.versioning.repository import *
3
 
import os
4
 
 
5
 
class TestPathed(fixture.Base):
6
 
    def test_templates(self):
7
 
        """We can find the path to all repository templates"""
8
 
        path = str(template)
9
 
        self.assert_(os.path.exists(path))
10
 
    def test_repository(self):
11
 
        """We can find the path to the default repository"""
12
 
        path = template.get_repository() 
13
 
        self.assert_(os.path.exists(path))
14
 
    def test_script(self):
15
 
        """We can find the path to the default migration script"""
16
 
        path = template.get_script() 
17
 
        self.assert_(os.path.exists(path))