"""
Unit tests for One Codex
"""
from onecodex.lib.auth import check_version
from onecodex.version import __version__


SERVER = 'https://app.onecodex.com/'


def test_check_version():
    # TODO: Remove Internet dependency here -- need a version response mock
    should_upgrade, msg = check_version(__version__, SERVER, 'gui')

    assert not should_upgrade
    assert msg is None or msg.startswith('Please upgrade your client to the latest version')

@@ -174,16 +174,28 @@
 _version
+_integration
 ():%0A    
@@ -332,10 +332,10 @@
 R, '
-gu
+cl
 i')%0A

Update verison check test, note it's an integration test