aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/svn_version/ut/lib/test_simple.py
blob: dc999ad5ac9e3c1bb5a7da614cb8cd5da950dc94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import library.python.svn_version as sv 


def test_simple():
    assert sv.svn_version() 
    assert isinstance(sv.svn_version(), str)
    assert sv.svn_revision()
    assert isinstance(sv.svn_revision(), int)
    assert sv.svn_last_revision()
    assert isinstance(sv.svn_last_revision(), int)
    assert sv.svn_last_revision() > 0
    assert sv.commit_id()
    assert isinstance(sv.commit_id(), str)
    assert len(sv.commit_id()) > 0
    assert isinstance(sv.hash(), str)
    assert isinstance(sv.patch_number(), int)