コード例 #1
0
 def test_values_scale_is_zero(self):
     """
     Make sure that the scale value is valid when it is zero
     """
     self.assertTrue(dqc_us_0004._min_dec_valid(0))
コード例 #2
0
 def test_values_scale_negative_infinity(self):
     """
     Make sure that the scale value is valid if it is negative infinity
     """
     self.assertTrue(dqc_us_0004._min_dec_valid(float('-inf')))
コード例 #3
0
 def test_values_scale_none(self):
     """
     Make sure that the scale value is not valid if is not None
     """
     self.assertFalse(dqc_us_0004._min_dec_valid(None))
コード例 #4
0
 def test_values_scale_nan(self):
     """
     Make sure that the scale value is not valid if it is Not a Number
     """
     self.assertFalse(dqc_us_0004._min_dec_valid(float('nan')))
     self.assertTrue(dqc_us_0004._min_dec_valid(float(2)))
コード例 #5
0
 def test_values_scale_is_zero(self):
     """
     Make sure that the scale value is valid when it is zero
     """
     self.assertTrue(dqc_us_0004._min_dec_valid(0))
コード例 #6
0
 def test_values_scale_none(self):
     """
     Make sure that the scale value is not valid if is not None
     """
     self.assertFalse(dqc_us_0004._min_dec_valid(None))
コード例 #7
0
 def test_values_scale_negative_infinity(self):
     """
     Make sure that the scale value is valid if it is negative infinity
     """
     self.assertTrue(dqc_us_0004._min_dec_valid(float('-inf')))
コード例 #8
0
 def test_values_scale_nan(self):
     """
     Make sure that the scale value is not valid if it is Not a Number
     """
     self.assertFalse(dqc_us_0004._min_dec_valid(float('nan')))
     self.assertTrue(dqc_us_0004._min_dec_valid(float(2)))