Beispiel #1
0
def test_get_version_info():
    vcsdir = _vcs_path()
    versionthing = {'version': product_version()} 
    if vcsdir is not None:
        versionthing['vcs_version'] = vcs_version()
        versionthing['updated'] = vcs_timestamp()
        versionthing['revision'] = vcs_revision()
    
    assert (versionthing == get_version_info())
Beispiel #2
0
def test_product_version():
    '''Test the product_version method of version.py.'''
    version_value = __version__
    assert (version_value == product_version())