File: test_dateentry.py

package info (click to toggle)
kiwi 1.9.22-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 11,912 kB
  • ctags: 5,549
  • sloc: python: 15,779; ansic: 193; xml: 77; makefile: 57; sh: 18
file content (16 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import datetime
import unittest

from kiwi.ui.dateentry import DateEntry

class TestDateEntry(unittest.TestCase):
    def setUp(self):
        self.date = datetime.date.today()

    def testGetSetDate(self):
        entry = DateEntry()
        entry.set_date(self.date)
        self.assertEqual(entry.get_date(), self.date)

if __name__ == '__main__':
    unittest.main()