diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-06-12 10:14:10 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-06-12 10:14:10 +0200 |
| commit | 2d2ba80ac8aafbfc4f5a2a2ae6490ad994d57d9d (patch) | |
| tree | e124ac55d34834c03aba5585dd8d566c33667f38 /tests/test_utils.py | |
| parent | 6d4ac7f78db22a03f0b4f295fdd7dacd22b7cc48 (diff) | |
| parent | 1cc440e8426cdd297f73f7322356744d190f58fe (diff) | |
| download | python-apt-2d2ba80ac8aafbfc4f5a2a2ae6490ad994d57d9d.tar.gz | |
merged from lp:~mvo/python-apt/mvo
Diffstat (limited to 'tests/test_utils.py')
| -rw-r--r-- | tests/test_utils.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py index dc54c1ba..2676bb98 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -6,11 +6,13 @@ # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. +import datetime +import os import sys +import unittest + import apt_pkg import apt.utils -import datetime -import unittest from apt.utils import ( get_maintenance_end_date, @@ -20,7 +22,9 @@ from apt.utils import ( class TestUtils(unittest.TestCase): def test_get_release_date_from_release_file(self): - t = get_release_date_from_release_file("./tests/data/misc/foo_Release") + path = os.path.join(os.path.dirname(__file__), + "data", "misc", "foo_Release") + t = get_release_date_from_release_file(path) self.assertEqual(str(datetime.datetime.utcfromtimestamp(t)), "2012-04-25 22:49:23") |
