Example #1
0
 def test_check_release_cmp_success(self):
     '''
     Test that an int is returned from the version compare
     '''
     assert isinstance(salt_version._check_release_cmp('Oxygen'), int)
Example #2
0
def test_check_release_cmp_success():
    """
    Test that an int is returned from the version compare
    """
    assert isinstance(salt_version._check_release_cmp("Oxygen"), int)
Example #3
0
 def test_check_release_cmp_no_codename(self):
     '''
     Test that None is returned when the codename isn't found.
     '''
     assert salt_version._check_release_cmp('foo') is None
Example #4
0
def test_check_release_cmp_no_codename():
    """
    Test that None is returned when the codename isn't found.
    """
    assert salt_version._check_release_cmp("foo") is None