/usr/lib/python2.3/tabnanny.py *
This commit is contained in:
@@ -78,5 +78,4 @@ class ArchiveFileTestCase(unittest.TestCase):
|
|||||||
testfile = targetDir + "/sandbox/borek.cs"
|
testfile = targetDir + "/sandbox/borek.cs"
|
||||||
assert pathexists(testfile)
|
assert pathexists(testfile)
|
||||||
|
|
||||||
|
|
||||||
suite = unittest.makeSuite(ArchiveFileTestCase)
|
suite = unittest.makeSuite(ArchiveFileTestCase)
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ class ContextTestCase(unittest.TestCase):
|
|||||||
self.ctx = context.Context("samples/popt/popt.pspec")
|
self.ctx = context.Context("samples/popt/popt.pspec")
|
||||||
|
|
||||||
def testConstness(self):
|
def testConstness(self):
|
||||||
|
|
||||||
# test if we can get a const attribute?
|
# test if we can get a const attribute?
|
||||||
try:
|
try:
|
||||||
test = self.ctx.const.archives_dir_suffix
|
test = self.ctx.const.archives_dir_suffix
|
||||||
@@ -38,7 +37,4 @@ class ContextTestCase(unittest.TestCase):
|
|||||||
# we achived our goal with this error. infact, this is a
|
# we achived our goal with this error. infact, this is a
|
||||||
# ConstError but we can't catch it directly here
|
# ConstError but we can't catch it directly here
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
suite = unittest.makeSuite(ContextTestCase)
|
suite = unittest.makeSuite(ContextTestCase)
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ from pisi import context
|
|||||||
class FetcherTestCase(unittest.TestCase):
|
class FetcherTestCase(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.ctx = context.Context("samples/popt/popt.pspec")
|
self.ctx = context.Context("samples/popt/popt.pspec")
|
||||||
|
|
||||||
self.fetch = fetcher.Fetcher(self.ctx)
|
self.fetch = fetcher.Fetcher(self.ctx)
|
||||||
|
|
||||||
def testFetch(self):
|
def testFetch(self):
|
||||||
@@ -19,5 +18,4 @@ class FetcherTestCase(unittest.TestCase):
|
|||||||
self.assertEqual(util.sha1_file(destpath),
|
self.assertEqual(util.sha1_file(destpath),
|
||||||
self.ctx.spec.source.archiveSHA1)
|
self.ctx.spec.source.archiveSHA1)
|
||||||
|
|
||||||
|
|
||||||
suite = unittest.makeSuite(FetcherTestCase)
|
suite = unittest.makeSuite(FetcherTestCase)
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ if __name__ == "__main__":
|
|||||||
module = __import__(test + 'tests')
|
module = __import__(test + 'tests')
|
||||||
print "\nRunning tests in '%s'...\n" % (test)
|
print "\nRunning tests in '%s'...\n" % (test)
|
||||||
runTestSuite(module.suite)
|
runTestSuite(module.suite)
|
||||||
|
|
||||||
else: # run all tests
|
else: # run all tests
|
||||||
print "\nRunning all tests in order...\n"
|
print "\nRunning all tests in order...\n"
|
||||||
run_all()
|
run_all()
|
||||||
|
|||||||
@@ -27,5 +27,4 @@ class SpecReadTestCase(unittest.TestCase):
|
|||||||
def testLenPackages(self):
|
def testLenPackages(self):
|
||||||
self.assertEqual(len(self.spec.packages), 1)
|
self.assertEqual(len(self.spec.packages), 1)
|
||||||
|
|
||||||
|
|
||||||
suite = unittest.makeSuite(SpecReadTestCase)
|
suite = unittest.makeSuite(SpecReadTestCase)
|
||||||
|
|||||||
Reference in New Issue
Block a user