class FixedBooleanProviderTest(unittest.TestCase): """Test class for FixedBooleanProvider. """ def setUp(self): self.provider = FixedBooleanProvider() def tearDown(self): pass def testGetValue(self): """Tests FixedBooleanProvider.getValue() """ value = True self.provider.param_values = {'value': value} self.assertEquals(self.provider.getValue(), value) value = False self.provider.param_values = {'value': value} self.assertEquals(self.provider.getValue(), value)
class FixedBooleanProviderTest(unittest.TestCase): """Test class for FixedBooleanProvider. """ def setUp(self): self.provider = FixedBooleanProvider() def tearDown(self): pass def testGetValue(self): """Tests FixedBooleanProvider.getValue() """ value = True self.provider.param_values = {"value": value} self.assertEquals(self.provider.getValue(), value) value = False self.provider.param_values = {"value": value} self.assertEquals(self.provider.getValue(), value)
def setUp(self): self.provider = FixedBooleanProvider()