def suite(): suite_ = unittest.TestSuite() suite_.addTest(TestConnection('runTest')) tests = common_tests() for t in tests: suite_.addTest(TestLocalFS(t)) return suite_
def suite(): suite_ = unittest.TestSuite() suite_.addTest(TestConnection('connect')) suite_.addTest(TestConnection('cache')) tests = common_tests() if not hdfs.default_is_local(): tests.extend([ 'capacity', 'default_block_size', 'used', 'chown', 'utime', 'block_size', 'replication', 'set_replication', 'readline_block_boundary', 'get_hosts', ]) for t in tests: suite_.addTest(TestHDFS(t)) return suite_
def suite(): suite = unittest.TestSuite() suite.addTest(TestConnection("connect")) suite.addTest(TestConnection("cache")) tests = common_tests() if not hdfs.default_is_local(): tests.extend( [ "capacity", "default_block_size", "used", "chown", "utime", "block_size", "replication", "set_replication", "readline_block_boundary", "get_hosts", ] ) for t in tests: suite.addTest(TestHDFS(t)) return suite