summaryrefslogtreecommitdiff
path: root/tests/test_dateentry.py
diff options
context:
space:
mode:
authorSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 09:27:57 -0700
committerSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 09:27:57 -0700
commit928ccf929c26a5344c224303b5108e99c2eb597a (patch)
tree6d371148311fe4467b0c9a208e9c36d24380c75e /tests/test_dateentry.py
Imported Upstream version 1.9.8
Diffstat (limited to 'tests/test_dateentry.py')
-rw-r--r--tests/test_dateentry.py19
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()