<s> import pytest <EOL> from servi . semantic import * <EOL> def test_semantic_version ( ) : <EOL> assert SemanticVersion ( '<STR_LIT>' ) > SemanticVersion ( '<STR_LIT:1.0>' ) <EOL> assert SemanticVersion ( '<STR_LIT:1.0>' ) >= SemanticVersion ( '<STR_LIT:1.0>' ) <EOL> assert SemanticVersion ( '<STR_LIT>' ) == SemanticVersion ( '<STR_LIT:1.0>' ) <EOL> assert SemanticVersion ( '<STR_LIT>' ) < SemanticVersion ( '<STR_LIT>' ) <EOL> assert SemanticVersion ( '<STR_LIT>' ) <= SemanticVersion ( '<STR_LIT>' ) <EOL> assert SemanticVersion ( '<STR_LIT:1>' ) . bump_ver ( MAJOR ) == SemanticVersion ( '<STR_LIT>' ) <EOL> assert SemanticVersion ( '<STR_LIT:1>' ) . bump_ver ( MINOR ) == SemanticVersion ( '<STR_LIT>' ) <EOL> assert SemanticVersion ( '<STR_LIT:1>' ) . bump_ver ( PATCH ) == SemanticVersion ( '<STR_LIT>' ) <EOL> assert str ( SemanticVersion ( '<STR_LIT>' ) ) == '<STR_LIT>' <EOL> assert SemanticVersion ( '<STR_LIT>' ) > SemanticVersion ( '<STR_LIT>' ) <EOL> with pytest . raises ( ValueError ) : <EOL> SemanticVersion ( '<STR_LIT>' ) <EOL> with pytest . raises ( ValueError ) : <EOL> SemanticVersion ( '<STR_LIT:hello>' ) <EOL> with pytest . raises ( ValueError ) : <EOL> SemanticVersion ( <NUM_LIT:10> ) <EOL> assert SemanticVersion . sv_string_to_ver ( None ) is None </s>
