Beispiel #1
0
def contains_should_return_true_if_package_in_specific_version_available(
        temp_dir):
    temp_dir.create_directory("packages")
    temp_dir.touch("packages", "spam-0.1.2.tar.gz")
    index = PackageIndex("any_name", temp_dir.join("packages"))

    assert_that(index.contains("spam", "0.1.2")).is_equal_to(True)
def contains_should_return_true_if_package_in_specific_version_available(temp_dir):
    temp_dir.create_directory("packages")
    temp_dir.touch("packages", "spam-0.1.2.tar.gz")
    index = PackageIndex("any_name", temp_dir.join("packages"))

    assert_that(index.contains("spam", "0.1.2")).is_equal_to(True)
def contains_should_return_false_if_package_not_available(temp_dir):
    temp_dir.create_directory("packages")
    index = PackageIndex("any_name", temp_dir.join("packages"))

    assert_that(index.contains("egg", "0.1.2")).is_equal_to(False)
Beispiel #4
0
def contains_should_return_false_if_package_not_available(temp_dir):
    temp_dir.create_directory("packages")
    index = PackageIndex("any_name", temp_dir.join("packages"))

    assert_that(index.contains("egg", "0.1.2")).is_equal_to(False)