コード例 #1
0
ファイル: dbs_provider_t.py プロジェクト: stormlv/LifeCycle
class testUtils(unittest.TestCase):
    "test class for the DataProvider module"

    def setUp(self):
        self.mgr = DBSDataProvider()
        self.number = 2

    def test_datasets(self):
        attrs = {}
        datasets = self.mgr.datasets(self.number, **attrs)
        print "\ndatasets:\n", datasets
        self.assertEqual(self.number, len(datasets))

        for row in datasets:
            res = self.mgr.gen_blocks(row, 2)
            print "\nblocks:\n", res

    def test_blocks(self):
        attrs = {}
        blocks = self.mgr.blocks(self.number, **attrs)
        print "\nblocks:\n", blocks
        self.assertEqual(self.number, len(blocks))

    def test_files(self):
        files = self.mgr.files(self.number)
        print "\nfiles:\n", files
        self.assertEqual(self.number, len(files))
コード例 #2
0
class testUtils(unittest.TestCase):
    "test class for the DataProvider module"
    def setUp(self):
        self.mgr = DBSDataProvider()
        self.number = 2

    def test_datasets(self):
        attrs = {}
        datasets = self.mgr.datasets(self.number, **attrs)
        print "\ndatasets:\n", datasets
        self.assertEqual(self.number, len(datasets))

        for row in datasets:
            res = self.mgr.gen_blocks(row, 2)
            print "\nblocks:\n", res

    def test_blocks(self):
        attrs = {}
        blocks = self.mgr.blocks(self.number, **attrs)
        print "\nblocks:\n", blocks
        self.assertEqual(self.number, len(blocks))

    def test_files(self):
        files = self.mgr.files(self.number)
        print "\nfiles:\n", files
        self.assertEqual(self.number, len(files))
コード例 #3
0
ファイル: dbs_provider_t.py プロジェクト: stormlv/LifeCycle
 def setUp(self):
     self.mgr = DBSDataProvider()
     self.number = 2
コード例 #4
0
 def setUp(self):
     self.mgr = DBSDataProvider()
     self.number = 2