1
# -*- coding: utf-8 -*-
2
# -----------------------------------------------------------------------------
3
# Gettings Things Gnome! - a personal organizer for the GNOME desktop
4
# Copyright (c) 2008-2009 - Lionel Dricot & Bertrand Rousseau
6
# This program is free software: you can redistribute it and/or modify it under
7
# the terms of the GNU General Public License as published by the Free Software
8
# Foundation, either version 3 of the License, or (at your option) any later
11
# This program is distributed in the hope that it will be useful, but WITHOUT
12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
16
# You should have received a copy of the GNU General Public License along with
17
# this program. If not, see <http://www.gnu.org/licenses/>.
18
# -----------------------------------------------------------------------------
20
"""Tests for GTG backends.
22
Some of these tests will generate files in
23
xdg.BaseDirectory.xdg_data_home/gtg directory.
29
from GTG.gtk.editor import taskviewserial
31
class GtgBackendsUniTests(unittest.TestCase):
32
"""Tests for GTG backends."""
34
def __init__(self, test):
35
unittest.TestCase.__init__(self, test)
41
def test_unserializer_parsexml(self):
42
"""Tests for parsexml in unserializing :
43
- the task should be preserved
46
unserial = taskviewserial.Unserializer(taskview)
50
return unittest.TestLoader().loadTestsFromName(__name__)