Ejemplo n.º 1
0
 def testGetSame(self):
     self.assertIs(Condition.add(self.condition1), None,
                   'Could not add new condition')
     self.assertIs(Condition.get('name1'), self.condition1,
                   'Could not get that same condition')
Ejemplo n.º 2
0
 def testAddSame(self):
     self.assertIs(Condition.add(self.condition1), None,
                   'Could not add new condition')
     self.assertRaises(
         AssertionError, Condition.add,
         self.condition1)  # 'Could not add another new condition')
Ejemplo n.º 3
0
 def testAdd(self):
     self.assertIs(Condition.add(self.condition1), None,
                   'Could not add new condition')
     self.assertIs(Condition.add(self.condition2), None,
                   'Could not add another new condition')
Ejemplo n.º 4
0
 def testGetSame(self):
     self.assertIs(Condition.add(self.condition1), None, 'Could not add new condition')
     self.assertIs(Condition.get('name1'), self.condition1, 'Could not get that same condition')
Ejemplo n.º 5
0
 def testAddSame(self):
     self.assertIs(Condition.add(self.condition1), None, 'Could not add new condition')
     self.assertRaises(AssertionError, Condition.add, self.condition1) # 'Could not add another new condition')
Ejemplo n.º 6
0
 def testAdd(self):
     self.assertIs(Condition.add(self.condition1), None, 'Could not add new condition')
     self.assertIs(Condition.add(self.condition2), None, 'Could not add another new condition')