From 3fece196384dc0cbf1185cc1fadfc613f298afc2 Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Wed, 4 Oct 2006 10:50:46 -0400 Subject: [PATCH] Test that unsubscribing actually removes the entries from the output --- tests/test_splice.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_splice.py b/tests/test_splice.py index 6f2807a..317faeb 100644 --- a/tests/test_splice.py +++ b/tests/test_splice.py @@ -16,3 +16,11 @@ class SpliceTest(unittest.TestCase): self.assertEqual('test planet', doc.getElementsByTagName('title')[0].firstChild.nodeValue) + + def test_splice_unsub(self): + config.load(configfile) + config.parser.remove_section('tests/data/spider/testfeed2.atom') + doc = splice() + self.assertEqual(8,len(doc.getElementsByTagName('entry'))) + self.assertEqual(3,len(doc.getElementsByTagName('planet:source'))) + self.assertEqual(11,len(doc.getElementsByTagName('planet:name')))