示例#1
0
 def test_boolean(self):
   self.assertTrue(builtins.is_positive(True))
   self.assertFalse(builtins.is_positive(False))
示例#2
0
 def test_floats(self):
   self.assertTrue(builtins.is_positive(4.2))
   self.assertFalse(builtins.is_positive(0.0))
   self.assertFalse(builtins.is_positive(-1.4))
示例#3
0
 def test_positive(self):
   self.assertTrue(builtins.is_positive(4))
   self.assertFalse(builtins.is_positive(-1))
   self.assertFalse(builtins.is_positive(0))
示例#4
0
 def test_boolean(self):
   self.assertTrue(is_positive(True))
   self.assertFalse(is_positive(False))
示例#5
0
 def test_floats(self):
   self.assertTrue(is_positive(4.2))
   self.assertFalse(is_positive(0.0))
   self.assertFalse(is_positive(-1.4))
示例#6
0
 def test_positive(self):
   self.assertTrue(is_positive(4))
   self.assertFalse(is_positive(-1))
   self.assertFalse(is_positive(0))