Revision 0c6ab9df snf-pithos-app/pithos/api/test/containers.py

b/snf-pithos-app/pithos/api/test/containers.py
933 933
        r = self.delete(url)
934 934
        self.assertEqual(r.status_code, 404)
935 935

  
936
    @pithos_test_settings(API_LIST_LIMIT=10)
936 937
    def test_delete_contents(self):
937 938
        folder = self.create_folder('c1')[0]
938
        descendant = strnextling(folder)
939
        self.upload_object('c1', descendant)
939
        for i in range(11):
940
            descendant = '%s_%d' % (strnextling(folder), i)
941
            self.upload_object('c1', descendant)
940 942
        self.create_folder('c1', '%s/%s' % (folder, get_random_data(5)))[0]
941 943

  
942
        self.delete('%s?delimiter=/' % join_urls(
944
        r = self.delete('%s?delimiter=/' % join_urls(
943 945
            self.pithos_path, self.user, 'c1'))
946
        self.assertEqual(r.status_code, 204)
944 947
        self.assertEqual([], self.list_objects('c1'))
945 948
        self.assertTrue('c1' in self.list_containers(format=None))

Also available in: Unified diff