Ejemplo n.º 1
0
    def setUp(self):
        super(TestAbstractReallocation, self).setUp()

        with self._context("database"):
            self._conf = conference.Conference(self._dummy)
            self._track1 = self._conf.newTrack()
            self._track2 = self._conf.newTrack()
            self._track3 = self._conf.newTrack()
            self._abstract = self._conf.getAbstractMgr().newAbstract(
                self._dummy)
            self._abstract.addTrack(self._track1)
Ejemplo n.º 2
0
 def setUp(self):
     av = user.Avatar()
     self._conf = conference.Conference(av)
     self._track1 = self._conf.newTrack()
     self._track2 = self._conf.newTrack()
     self._track3 = self._conf.newTrack()
     submitter = user.Avatar()
     submitter.setId("submitter")
     self._abstract = self._conf.getAbstractMgr().newAbstract(submitter)
     self._abstract.addTrack(self._track1)
     self._abstract.addTrack(self._track2)
     self._abstract.addTrack(self._track3)
Ejemplo n.º 3
0
 def setUp(self):
     av = user.Avatar()
     self._conf = conference.Conference(av)
     self._ctOral = conference.ContributionType("oral", "", self._conf)
     self._ctPoster = conference.ContributionType("poster", "", self._conf)
     self._conf.addContribType(self._ctOral)
     self._conf.addContribType(self._ctPoster)
     self._track1 = self._conf.newTrack()
     self._track2 = self._conf.newTrack()
     self._track3 = self._conf.newTrack()
     submitter = user.Avatar()
     submitter.setId("submitter")
     self._abstract = self._conf.getAbstractMgr().newAbstract(submitter)
Ejemplo n.º 4
0
 def testBasicAddAndRemoveConferences(self):
     #creation of basic category structure over which perform the tests
     croot=conference.Category()
     c1=conference.Category()
     croot._addSubCategory(c1)
     c2=conference.Category()
     croot._addSubCategory(c2)
     c1_1=conference.Category()
     c1._addSubCategory(c1_1)
     #checks adding a conference increases the conference number of the 
     #   involved categories
     creator=user.Avatar()
     conf1=conference.Conference(creator)
     conf1.setId("0")
     c1_1._addConference(conf1)
     self.assert_(c1_1.getNumConferences()==1)
     self.assert_(c1.getNumConferences()==1)
     self.assert_(c2.getNumConferences()==0)
     self.assert_(croot.getNumConferences()==1)
     conf2=conference.Conference(creator)
     conf2.setId("1")
     c2._addConference(conf2)
     self.assert_(c1_1.getNumConferences()==1)
     self.assert_(c1.getNumConferences()==1)
     self.assert_(c2.getNumConferences()==1)
     self.assert_(croot.getNumConferences()==2)
     c1_1.removeConference(conf1)
     self.assert_(c1_1.getNumConferences()==0)
     self.assert_(c1.getNumConferences()==0)
     self.assert_(c2.getNumConferences()==1)
     self.assert_(croot.getNumConferences()==1)
     c2.removeConference(conf2)
     self.assert_(c1_1.getNumConferences()==0)
     self.assert_(c1.getNumConferences()==0)
     self.assert_(c2.getNumConferences()==0)
     self.assert_(croot.getNumConferences()==0)
Ejemplo n.º 5
0
 def setUp(self):
     av = user.Avatar()
     self._conf = conference.Conference(av)
     self._track1 = self._conf.newTrack()
     self._track2 = self._conf.newTrack()
     self._track3 = self._conf.newTrack()
Ejemplo n.º 6
0
 def setUp(self):
     self._creator = user.Avatar()
     self._conf = conference.Conference(self._creator)
Ejemplo n.º 7
0
 def setUp(self):
     av = user.Avatar()
     self._conf = conference.Conference(av)
     self._tz = timezone('UTC')
     self._conf.setTimezone('UTC')