def test_version_int():
 assert (version_int('3.5.0a1pre2') == 3050000001002)
 assert (version_int('') == 200100)
 assert (version_int('0') == 200100)
 assert (version_int('*') == 99000000200100)
 assert (version_int(MAXVERSION) == MAXVERSION)
 assert (version_int((MAXVERSION + 1)) == MAXVERSION)
 assert (version_int('9999999') == MAXVERSION)

def test_version_int ( ) : assert ( version_int ( '3.5.0a1pre2' ) == 3050000001002 ) assert ( version_int ( '' ) == 200100 ) assert ( version_int ( '0' ) == 200100 ) assert ( version_int ( '*' ) == 99000000200100 ) assert ( version_int ( MAXVERSION ) == MAXVERSION ) assert ( version_int ( ( MAXVERSION + 1 ) ) == MAXVERSION ) assert ( version_int ( '9999999' ) == MAXVERSION )
tests that version_int .