def test_boolean(self): self.assertTrue(builtins.is_positive(True)) self.assertFalse(builtins.is_positive(False))
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))
def test_positive(self): self.assertTrue(builtins.is_positive(4)) self.assertFalse(builtins.is_positive(-1)) self.assertFalse(builtins.is_positive(0))
def test_boolean(self): self.assertTrue(is_positive(True)) self.assertFalse(is_positive(False))
def test_floats(self): self.assertTrue(is_positive(4.2)) self.assertFalse(is_positive(0.0)) self.assertFalse(is_positive(-1.4))
def test_positive(self): self.assertTrue(is_positive(4)) self.assertFalse(is_positive(-1)) self.assertFalse(is_positive(0))