diff --git a/tests/str_fixtures.py b/tests/str_fixtures.py
new file mode 100644
index 0000000..0730beb
--- /dev/null
+++ b/tests/str_fixtures.py
@@ -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 = """
+
+
+
+
+ Stanford InfoLab
+ The PageRank Citation Ranking: Bringing Order to the Web.
+ http://ilpubs.stanford.edu:8090/422/
+ 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.
+ 1999-66
+ November
+ Previous number = SIDL-WP-1999-0120
+ 1999
+ Stanford InfoLab
+
+
+ Lawrence
+ Page
+
+
+ Sergey
+ Brin
+
+
+ Rajeev
+ Motwani
+
+
+ Terry
+ Winograd
+
+
+
+
+
+
+"""
+
+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]
+"""
\ No newline at end of file
diff --git a/tests/test_endecoder.py b/tests/test_endecoder.py
index 855913b..2e31e76 100644
--- a/tests/test_endecoder.py
+++ b/tests/test_endecoder.py
@@ -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 = """
-
-
-
-
- Stanford InfoLab
- The PageRank Citation Ranking: Bringing Order to the Web.
- http://ilpubs.stanford.edu:8090/422/
- 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.
- 1999-66
- November
- Previous number = SIDL-WP-1999-0120
- 1999
- Stanford InfoLab
-
-
- Lawrence
- Page
-
-
- Sergey
- Brin
-
-
- Rajeev
- Motwani
-
-
- Terry
- Winograd
-
-
-
-
-
-
-"""
-
-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: