Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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
Ejemplo n.º 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