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')
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')
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')
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')
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')
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')