Beispiel #1
0
 def testNumHiddenFiles(self):
     list = data.collect_list_info(False, u'.')
     self.assertEquals(len(filter(lambda(f): f.is_hidden, list)), 5)
Beispiel #2
0
 def testNoItemsGetLost(self):
     ret = data.collect_list_info(False, u'.')
     self.assertEquals(len(ret), len(util.fake_file_lister(False, u'.')))
Beispiel #3
0
 def testItemsDontContainDotDot(self):
     list = data.collect_list_info(False, u'.')
     self.assertRaises(ValueError, list.index, u'..')
Beispiel #4
0
 def setUp(self):
     allItems = data.collect_list_info(False, u".")
     self.list = data.construct_list_for_filling(allItems, None)