示例#1
0
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)
示例#2
0
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)
示例#3
0
 def setUp(self):
     self.provider = FixedBooleanProvider()
示例#4
0
 def setUp(self):
     self.provider = FixedBooleanProvider()