Example #1
0
def vcs_is_string_before_plus():
    assert_equal("git", parse("git+http://example.com/repo").vcs)
Example #2
0
def additional_hashes_in_uri_are_ignored():
    assert_equal("0#1", parse("http://example.com/repo#0#1").revision)
Example #3
0
def vcs_is_none_if_plus_doesnt_occur_in_uri():
    assert_equal(None, parse("http://example.com/repo").vcs)
Example #4
0
def repo_uri_is_original_uri_if_vcs_and_revision_not_specified():
    assert_equal(
        "http://example.com/repo",
        parse("http://example.com/repo").repo_uri
    )
Example #5
0
def additional_pluses_in_uri_are_ignored():
    assert_equal("http://example.com/+repo", parse("git+http://example.com/+repo").repo_uri)
Example #6
0
def revision_is_none_if_hash_doesnt_occur_in_uri():
    assert_equal(None, parse("http://example.com/repo").revision)
Example #7
0
def revision_is_string_after_hash():
    assert_equal("0.1", parse("http://example.com/repo#0.1").revision)
Example #8
0
def additional_hashes_in_uri_are_ignored():
    assert_equal("0#1", parse("http://example.com/repo#0#1").revision)
Example #9
0
def vcs_is_none_if_plus_doesnt_occur_in_uri():
    assert_equal(None, parse("http://example.com/repo").vcs)
Example #10
0
def additional_pluses_in_uri_are_ignored():
    assert_equal("http://example.com/+repo",
                 parse("git+http://example.com/+repo").repo_uri)
Example #11
0
def repo_uri_is_original_uri_if_vcs_and_revision_not_specified():
    assert_equal("http://example.com/repo",
                 parse("http://example.com/repo").repo_uri)
Example #12
0
def revision_is_string_after_hash():
    assert_equal("0.1", parse("http://example.com/repo#0.1").revision)
Example #13
0
def revision_is_none_if_hash_doesnt_occur_in_uri():
    assert_equal(None, parse("http://example.com/repo").revision)
Example #14
0
def vcs_is_string_before_plus():
    assert_equal("git", parse("git+http://example.com/repo").vcs)