aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/svn_version/ut/lib/test_simple.py
blob: 06d12b6cb1a5328583182ae5a40e7e8c8ed9ebce (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)