diff --git a/tests/test_list_base.py b/tests/test_list_base.py index 0c20f01..21bd31f 100644 --- a/tests/test_list_base.py +++ b/tests/test_list_base.py @@ -22,7 +22,7 @@ else: class TestListBase(unittest.TestCase): - def test_05_len_count(self): + def test_01_len_count(self): # count sets explicit number of resources, len(resources) not used lb = ListBase() self.assertEqual( len(lb), 0 ) @@ -31,17 +31,16 @@ class TestListBase(unittest.TestCase): lb = ListBase( count=100 ) self.assertEqual( len(lb), 100 ) - def test_08_print(self): + def test_02_print(self): lb = ListBase() lb.add( Resource(uri='a',lastmod='2001-01-01',length=1234) ) lb.add( Resource(uri='b',lastmod='2002-02-02',length=56789) ) lb.add( Resource(uri='c',lastmod='2003-03-03',length=0) ) lb.md['from']=None #avoid now being added - print(lb) x = lb.as_xml() self.assertEqual( x, '\na2001-01-01T00:00:00Zb2002-02-02T00:00:00Zc2003-03-03T00:00:00Z' ) - def test_11_parse_2(self): + def test_03_parse(self): xml = '\n\ \ \