def test_version_check():
    from synapseclient.version_check import _version_tuple
    assert_equals(_version_tuple('0.5.1.dev200', levels=2), ('0', '5'))
    assert_equals(_version_tuple('0.5.1.dev200', levels=3), ('0', '5', '1'))
    assert_equals(_version_tuple('1.6', levels=3), ('1', '6', '0'))
def test_version_check():
    from synapseclient.version_check import _version_tuple
    assert _version_tuple('0.5.1.dev200', levels=2) == ('0', '5')
    assert _version_tuple('0.5.1.dev200', levels=3) == ('0', '5', '1')
    assert _version_tuple('1.6', levels=3) == ('1', '6', '0')
def test_version_check():
    from synapseclient.version_check import _version_tuple

    assert _version_tuple("0.5.1.dev200", levels=2) == ("0", "5")
    assert _version_tuple("0.5.1.dev200", levels=3) == ("0", "5", "1")
    assert _version_tuple("1.6", levels=3) == ("1", "6", "0")