Ejemplo n.º 1
0
    def test_logbook_create(self):
        id = 1
        while (self.lb_ids.count(id) > 0):
            id = id + 1
        lb_tmp = db_api.logbook_create('', u'logbook_{0}'.format(id), id)
        self.lb_ids.append(id)
        self.lb_names.append(u'logbook_{0}'.format(id))

        actual = db_api.logbook_get('', id)

        self.assertIsNotNone(actual)
Ejemplo n.º 2
0
    def test_logbook_create(self):
        id = 1
        while (self.lb_ids.count(id) > 0):
            id = id + 1
        lb_tmp = db_api.logbook_create('', u'logbook_{0}'.format(id), id)
        self.lb_ids.append(id)
        self.lb_names.append(u'logbook_{0}'.format(id))

        actual = db_api.logbook_get('', id)

        self.assertIsNotNone(actual)
Ejemplo n.º 3
0
    def setUpClass(cls):
        wf_fmt = u'workflow_{0}'
        lb_tmp = db_api.logbook_create('', u'logbook_1', 1)
        cls.lb_ids.append(1)
        cls.lb_names.append(u'logbook_1')
        for i in range(1, 10):
            wf_tmp = db_api.workflow_create('', wf_fmt.format(i))

            db_api.logbook_add_workflow('', 1, wf_fmt.format(i))

            cls.wf_ids.append(i)
            cls.wf_names.append(wf_fmt.format(i))
Ejemplo n.º 4
0
    def setUpClass(cls):
        wf_fmt = u'workflow_{0}'
        lb_tmp = db_api.logbook_create('', u'logbook_1', 1)
        cls.lb_ids.append(1)
        cls.lb_names.append(u'logbook_1')
        for i in range(1, 10):
            wf_tmp = db_api.workflow_create('', wf_fmt.format(i))

            db_api.logbook_add_workflow('', 1, wf_fmt.format(i))

            cls.wf_ids.append(i)
            cls.wf_names.append(wf_fmt.format(i))