コード例 #1
0
ファイル: test_salt_version.py プロジェクト: yutiansut/salt
 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)
コード例 #2
0
ファイル: test_salt_version.py プロジェクト: xeacott/salt
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)
コード例 #3
0
ファイル: test_salt_version.py プロジェクト: yutiansut/salt
 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
コード例 #4
0
ファイル: test_salt_version.py プロジェクト: xeacott/salt
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