~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_setup.py

  • Committer: Robert Collins
  • Date: 2005-12-24 02:20:45 UTC
  • mto: (1185.50.57 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: robertc@robertcollins.net-20051224022045-14efc8dfa0e1a4e9
Start tests for api usage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
""" test for setup.py build process """
 
2
 
 
3
import os
 
4
import shutil
 
5
 
 
6
from bzrlib.tests import TestCase
 
7
 
 
8
 
 
9
class TestSetup(TestCase):
 
10
 
 
11
    def setUp(self):
 
12
        pass
 
13
 
 
14
    def test_build(self):
 
15
        """ test cmd `python setup.py build` """
 
16
        # run setup.py build as subproces and catch return code
 
17
        p = os.popen("python setup.py build")
 
18
        s = p.readlines()
 
19
        res = p.close()
 
20
        self.assertEqual(res, None, '`python setup.py build` fails')
 
21
 
 
22
    def tearDown(self):
 
23
        """ cleanup build directory """
 
24
        shutil.rmtree(u'build')