diff options
author | SVN-Git Migration <python-modules-team@lists.alioth.debian.org> | 2015-10-08 09:27:57 -0700 |
---|---|---|
committer | SVN-Git Migration <python-modules-team@lists.alioth.debian.org> | 2015-10-08 09:27:57 -0700 |
commit | 928ccf929c26a5344c224303b5108e99c2eb597a (patch) | |
tree | 6d371148311fe4467b0c9a208e9c36d24380c75e /tests/test_dateentry.py |
Imported Upstream version 1.9.8
Diffstat (limited to 'tests/test_dateentry.py')
-rw-r--r-- | tests/test_dateentry.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test_dateentry.py b/tests/test_dateentry.py new file mode 100644 index 0000000..382fee3 --- /dev/null +++ b/tests/test_dateentry.py @@ -0,0 +1,19 @@ +import sys +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): + if sys.platform == 'win32': + return + entry = DateEntry() + entry.set_date(self.date) + self.assertEqual(entry.get_date(), self.date) + +if __name__ == '__main__': + unittest.main() |