~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_smart_add.py

  • Committer: Martin Pool
  • Date: 2005-08-30 01:35:40 UTC
  • Revision ID: mbp@sourcefrog.net-20050830013540-34e8996a86ba25fb
- rename FunctionalTest to TestCaseInTempDir

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import os
2
2
import unittest
3
3
 
4
 
from bzrlib.selftest import FunctionalTestCase, TestCase
 
4
from bzrlib.selftest import TestCaseInTempDir, TestCase
5
5
from bzrlib.branch import Branch
6
6
from bzrlib.errors import NotBranchError, NotVersionedError
7
7
 
8
 
class TestSmartAdd(FunctionalTestCase):
 
8
class TestSmartAdd(TestCaseInTempDir):
9
9
 
10
10
    def test_add_dot_from_root(self):
11
11
        """Test adding . from the root of the tree.""" 
71
71
        for path in paths:
72
72
            self.assertNotEqual(branch.inventory.path2id(path), None)
73
73
            
74
 
class TestSmartAddBranch(FunctionalTestCase):
 
74
class TestSmartAddBranch(TestCaseInTempDir):
75
75
    """Test smart adds with a specified branch."""
76
76
 
77
77
    def test_add_dot_from_root(self):
138
138
        for path in paths:
139
139
            self.assertNotEqual(branch.inventory.path2id(path), None)
140
140
 
141
 
class TestAddCallbacks(FunctionalTestCase):
 
141
class TestAddCallbacks(TestCaseInTempDir):
142
142
 
143
143
    def setUp(self):
144
144
        from bzrlib.inventory import InventoryEntry