Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

equality check for ImcVersion and tests for version checking #97

Merged
merged 1 commit into from
Jan 24, 2017
Merged

equality check for ImcVersion and tests for version checking #97

merged 1 commit into from
Jan 24, 2017

Conversation

waghswapnil
Copy link
Member

Signed-off-by: Swapnil Wagh waghswapnil@gmail.com

Signed-off-by: Swapnil Wagh <waghswapnil@gmail.com>
def test_nightly_version3():
version1 = ImcVersion("2.0(2cS6)")
version2 = ImcVersion("2.0(2c)")
assert_equal((version1 == version2), True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@waghswapnil I know as of today we do not parse the spin part of the component.. but should we? add a spin_build (Bool) and spin_build_number(Int) to the version check.. so that 2.0(2c) < 2.0(2cS6).
Don't have to do this in this PR. we can do it later.. but let us keep a note of it.

Copy link
Member

@vvb vvb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vvb vvb merged commit 0b171e3 into CiscoUcs:master Jan 24, 2017
@waghswapnil waghswapnil deleted the version_tests branch January 24, 2017 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants