Example #1
0
def test_mathtools_is_negative_integer_01():

    assert not mathtools.is_negative_integer(1)
    assert not mathtools.is_negative_integer(int(1))
    assert not mathtools.is_negative_integer(Duration(1, 1))
    assert not mathtools.is_negative_integer(1.0)
    assert not mathtools.is_negative_integer(True)
    assert not mathtools.is_negative_integer(0)
    assert not mathtools.is_negative_integer(False)
Example #2
0
def test_mathtools_is_negative_integer_03():

    assert not mathtools.is_negative_integer('foo')
Example #3
0
def test_mathtools_is_negative_integer_02():

    assert mathtools.is_negative_integer(-99)