moved test string fixtures to str_fixtures.py

main
Fabien Benureau 11 years ago
parent e26c606163
commit 856cfa2a4f

@ -0,0 +1,88 @@
bibyaml_raw0 = """entries:
Page99:
abstract: The importance of a Web page is an inherently subjective matter,
which depends on the readers interests, knowledge and attitudes. But there
is still much that can be said objectively about the relative importance
of Web pages. This paper describes PageRank, a mathod for rating Web pages
objectively and mechanically, effectively measuring the human interest
and attention devoted to them. We compare PageRank to an idealized random
Web surfer. We show how to efficiently compute PageRank for large numbers
of pages. And, we show how to apply PageRank to search and to user navigation.
author:
- first: Lawrence
last: Page
- first: Sergey
last: Brin
- first: Rajeev
last: Motwani
- first: Terry
last: Winograd
institution: Stanford InfoLab
month: November
note: Previous number = SIDL-WP-1999-0120
number: 1999-66
publisher: Stanford InfoLab
title: 'The PageRank Citation Ranking: Bringing Order to the Web.'
type: techreport
url: http://ilpubs.stanford.edu:8090/422/
year: '1999'
"""
bibtexml_raw0 = """<?xml version='1.0' encoding='UTF-8'?>
<bibtex:file xmlns:bibtex="http://bibtexml.sf.net/">
<bibtex:entry id="Page99">
<bibtex:techreport>
<bibtex:publisher>Stanford InfoLab</bibtex:publisher>
<bibtex:title>The PageRank Citation Ranking: Bringing Order to the Web.</bibtex:title>
<bibtex:url>http://ilpubs.stanford.edu:8090/422/</bibtex:url>
<bibtex:abstract>The importance of a Web page is an inherently subjective matter, which depends on the readers interests, knowledge and attitudes. But there is still much that can be said objectively about the relative importance of Web pages. This paper describes PageRank, a mathod for rating Web pages objectively and mechanically, effectively measuring the human interest and attention devoted to them. We compare PageRank to an idealized random Web surfer. We show how to efficiently compute PageRank for large numbers of pages. And, we show how to apply PageRank to search and to user navigation.</bibtex:abstract>
<bibtex:number>1999-66</bibtex:number>
<bibtex:month>November</bibtex:month>
<bibtex:note>Previous number = SIDL-WP-1999-0120</bibtex:note>
<bibtex:year>1999</bibtex:year>
<bibtex:institution>Stanford InfoLab</bibtex:institution>
<bibtex:author>
<bibtex:person>
<bibtex:first>Lawrence</bibtex:first>
<bibtex:last>Page</bibtex:last>
</bibtex:person>
<bibtex:person>
<bibtex:first>Sergey</bibtex:first>
<bibtex:last>Brin</bibtex:last>
</bibtex:person>
<bibtex:person>
<bibtex:first>Rajeev</bibtex:first>
<bibtex:last>Motwani</bibtex:last>
</bibtex:person>
<bibtex:person>
<bibtex:first>Terry</bibtex:first>
<bibtex:last>Winograd</bibtex:last>
</bibtex:person>
</bibtex:author>
</bibtex:techreport>
</bibtex:entry>
</bibtex:file>
"""
bibtex_raw0 = """
@techreport{
Page99,
author = "Page, Lawrence and Brin, Sergey and Motwani, Rajeev and Winograd, Terry",
publisher = "Stanford InfoLab",
title = "The PageRank Citation Ranking: Bringing Order to the Web.",
url = "http://ilpubs.stanford.edu:8090/422/",
abstract = "The importance of a Web page is an inherently subjective matter, which depends on the readers interests, knowledge and attitudes. But there is still much that can be said objectively about the relative importance of Web pages. This paper describes PageRank, a mathod for rating Web pages objectively and mechanically, effectively measuring the human interest and attention devoted to them. We compare PageRank to an idealized random Web surfer. We show how to efficiently compute PageRank for large numbers of pages. And, we show how to apply PageRank to search and to user navigation.",
number = "1999-66",
month = "November",
note = "Previous number = SIDL-WP-1999-0120",
year = "1999",
institution = "Stanford InfoLab"
}
"""
metadata_raw0 = """external-document: null
notes: []
tags: [search, network]
"""

@ -6,94 +6,7 @@ import yaml
import testenv
from papers import endecoder
bibyaml_raw0 = """entries:
Page99:
abstract: The importance of a Web page is an inherently subjective matter,
which depends on the readers interests, knowledge and attitudes. But there
is still much that can be said objectively about the relative importance
of Web pages. This paper describes PageRank, a mathod for rating Web pages
objectively and mechanically, effectively measuring the human interest
and attention devoted to them. We compare PageRank to an idealized random
Web surfer. We show how to efficiently compute PageRank for large numbers
of pages. And, we show how to apply PageRank to search and to user navigation.
author:
- first: Lawrence
last: Page
- first: Sergey
last: Brin
- first: Rajeev
last: Motwani
- first: Terry
last: Winograd
institution: Stanford InfoLab
month: November
note: Previous number = SIDL-WP-1999-0120
number: 1999-66
publisher: Stanford InfoLab
title: 'The PageRank Citation Ranking: Bringing Order to the Web.'
type: techreport
url: http://ilpubs.stanford.edu:8090/422/
year: '1999'
"""
bibtexml_raw0 = """<?xml version='1.0' encoding='UTF-8'?>
<bibtex:file xmlns:bibtex="http://bibtexml.sf.net/">
<bibtex:entry id="Page99">
<bibtex:techreport>
<bibtex:publisher>Stanford InfoLab</bibtex:publisher>
<bibtex:title>The PageRank Citation Ranking: Bringing Order to the Web.</bibtex:title>
<bibtex:url>http://ilpubs.stanford.edu:8090/422/</bibtex:url>
<bibtex:abstract>The importance of a Web page is an inherently subjective matter, which depends on the readers interests, knowledge and attitudes. But there is still much that can be said objectively about the relative importance of Web pages. This paper describes PageRank, a mathod for rating Web pages objectively and mechanically, effectively measuring the human interest and attention devoted to them. We compare PageRank to an idealized random Web surfer. We show how to efficiently compute PageRank for large numbers of pages. And, we show how to apply PageRank to search and to user navigation.</bibtex:abstract>
<bibtex:number>1999-66</bibtex:number>
<bibtex:month>November</bibtex:month>
<bibtex:note>Previous number = SIDL-WP-1999-0120</bibtex:note>
<bibtex:year>1999</bibtex:year>
<bibtex:institution>Stanford InfoLab</bibtex:institution>
<bibtex:author>
<bibtex:person>
<bibtex:first>Lawrence</bibtex:first>
<bibtex:last>Page</bibtex:last>
</bibtex:person>
<bibtex:person>
<bibtex:first>Sergey</bibtex:first>
<bibtex:last>Brin</bibtex:last>
</bibtex:person>
<bibtex:person>
<bibtex:first>Rajeev</bibtex:first>
<bibtex:last>Motwani</bibtex:last>
</bibtex:person>
<bibtex:person>
<bibtex:first>Terry</bibtex:first>
<bibtex:last>Winograd</bibtex:last>
</bibtex:person>
</bibtex:author>
</bibtex:techreport>
</bibtex:entry>
</bibtex:file>
"""
bibtex_raw0 = """
@techreport{
Page99,
author = "Page, Lawrence and Brin, Sergey and Motwani, Rajeev and Winograd, Terry",
publisher = "Stanford InfoLab",
title = "The PageRank Citation Ranking: Bringing Order to the Web.",
url = "http://ilpubs.stanford.edu:8090/422/",
abstract = "The importance of a Web page is an inherently subjective matter, which depends on the readers interests, knowledge and attitudes. But there is still much that can be said objectively about the relative importance of Web pages. This paper describes PageRank, a mathod for rating Web pages objectively and mechanically, effectively measuring the human interest and attention devoted to them. We compare PageRank to an idealized random Web surfer. We show how to efficiently compute PageRank for large numbers of pages. And, we show how to apply PageRank to search and to user navigation.",
number = "1999-66",
month = "November",
note = "Previous number = SIDL-WP-1999-0120",
year = "1999",
institution = "Stanford InfoLab"
}
"""
metadata_raw0 = """external-document: null
notes: []
tags: [search, network]
"""
from str_fixtures import bibyaml_raw0, bibtexml_raw0, bibtex_raw0, metadata_raw0
def compare_yaml_str(s1, s2):
if s1 == s2:

Loading…
Cancel
Save