~nmu-sscheel/gtg/rework-task-editor

« back to all changes in this revision

Viewing changes to GTG/tests/test_taskviewserial.py

  • Committer: Bertrand Rousseau
  • Date: 2012-05-09 22:33:25 UTC
  • mfrom: (1178 trunk)
  • mto: This revision was merged to the branch mainline in revision 1179.
  • Revision ID: bertrand.rousseau@gmail.com-20120509223325-a53d8nwo0x9g93bc
Merge nimit branch and trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
5
 
#
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
9
 
# version.
10
 
#
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
14
 
# details.
15
 
#
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
 
# -----------------------------------------------------------------------------
19
 
 
20
 
"""Tests for GTG backends.
21
 
 
22
 
Some of these tests will generate files in
23
 
xdg.BaseDirectory.xdg_data_home/gtg directory.
24
 
"""
25
 
 
26
 
# Standard imports
27
 
import unittest
28
 
 
29
 
from GTG.gtk.editor import taskviewserial
30
 
    
31
 
class GtgBackendsUniTests(unittest.TestCase):
32
 
    """Tests for GTG backends."""
33
 
 
34
 
    def __init__(self, test):
35
 
        unittest.TestCase.__init__(self, test)
36
 
        self.taskfile = ''
37
 
        self.datafile = ''
38
 
        self.taskpath = ''
39
 
        self.datapath = ''
40
 
 
41
 
    def test_unserializer_parsexml(self):
42
 
        """Tests for parsexml in unserializing :
43
 
        - the task should be preserved
44
 
        """
45
 
        taskview = None
46
 
        unserial = taskviewserial.Unserializer(taskview)
47
 
        
48
 
        
49
 
def test_suite():
50
 
    return unittest.TestLoader().loadTestsFromName(__name__)