Skip to content

Commit

Permalink
Fix broken subscribe_test on IronPython
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Nov 26, 2013
1 parent f70b585 commit f3f3d15
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/subscribe_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_count_after_remove(fx_subscription):
assert list(subs) == []


XML = '''
XML = b'''
<opml xmlns:e="http://earthreader.org/subscription-list/" version="2.0">
<head>
<title>Earth Reader's Subscriptions</title>
Expand All @@ -70,7 +70,7 @@ def test_count_after_remove(fx_subscription):
</opml>
'''

XML_CATEGORY = '''
XML_CATEGORY = b'''
<opml version="2.0">
<head>
<title>Earth Reader's Subscriptions</title>
Expand Down Expand Up @@ -99,7 +99,7 @@ def test_count_after_remove(fx_subscription):
</opml>
'''

XML_DUPLICATION = '''
XML_DUPLICATION = b'''
<opml version="2.0">
<head>
<title>Earth Reader's Subscriptions</title>
Expand All @@ -119,7 +119,7 @@ def test_count_after_remove(fx_subscription):
</opml>
'''

XML_RECURSIVE = '''
XML_RECURSIVE = b'''
<opml version="2.0">
<head>
<title>Earth Reader's Subscriptions</title>
Expand Down Expand Up @@ -155,7 +155,7 @@ def test_count_after_remove(fx_subscription):

@fixture
def fx_subscription_list():
return read(SubscriptionList, XML)
return read(SubscriptionList, [XML])


def test_subscription_list_datetime(fx_subscription_list):
Expand Down Expand Up @@ -221,7 +221,7 @@ def test_subscription_feed_id(fx_subscription_list):

@fixture
def fx_categorized_subscription_list():
return read(SubscriptionList, XML_CATEGORY)
return read(SubscriptionList, [XML_CATEGORY])


def test_subscription_list_contains_category(fx_categorized_subscription_list):
Expand Down Expand Up @@ -274,7 +274,7 @@ def test_subscription_set_categories_subscriptions():

@fixture
def fx_duplicated_subscription_list():
return read(SubscriptionList, XML_DUPLICATION)
return read(SubscriptionList, [XML_DUPLICATION])


def test_subscription_set_iter_uniqueness(fx_duplicated_subscription_list):
Expand All @@ -285,7 +285,7 @@ def test_subscription_set_iter_uniqueness(fx_duplicated_subscription_list):

@fixture
def fx_recursive_subscription_list():
return read(SubscriptionList, XML_RECURSIVE)
return read(SubscriptionList, [XML_RECURSIVE])


def test_recursive_subscription_list(fx_recursive_subscription_list):
Expand All @@ -294,7 +294,7 @@ def test_recursive_subscription_list(fx_recursive_subscription_list):
assert len(game_category.recursive_subscriptions) == 3


XML_NO_HEAD = '''
XML_NO_HEAD = b'''
<opml version="2.0">
<body>
<outline text="CNET News.com" type="rss" version="RSS2"
Expand All @@ -307,7 +307,7 @@ def test_recursive_subscription_list(fx_recursive_subscription_list):

@fixture
def fx_headless_subscription_list():
return read(SubscriptionList, XML_NO_HEAD)
return read(SubscriptionList, [XML_NO_HEAD])


def test_no_head(fx_headless_subscription_list):
Expand Down

0 comments on commit f3f3d15

Please sign in to comment.