Skip to content

Commit

Permalink
Test as_xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Feb 27, 2016
1 parent 4af59d3 commit 3ca724e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,11 @@ def test_rss10(self):
def test_count(self):
self.assertEqual(FeedPipe().cat([ATOM10, RSS10]).count(), 2)

# not testing the actual XML as this module delegates that elsewhere, but
# instead verifies return type and at least runs the code
def test_xml(self):
self.assertEqual(type(FeedPipe().cat([ATOM10, RSS10]).as_xml()),
type("station"))

if __name__ == '__main__':
unittest.main()

0 comments on commit 3ca724e

Please sign in to comment.