diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-05-23 09:55:21 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-05-23 09:55:21 (GMT) |
commit | c202b6be43ab8ce4e53f61600e72c9af4443e8df (patch) | |
tree | e3d615ba0e79e7b9b1ed52762b93d54bafd90dd9 /tests/test-mime.py | |
parent | ffebebcd7dd53c3a5e63b48bda3b2526c017a978 (diff) |
Import xdgmime and start hooking it up
Diffstat (limited to 'tests/test-mime.py')
-rwxr-xr-x | tests/test-mime.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/test-mime.py b/tests/test-mime.py new file mode 100755 index 0000000..8ecd613 --- /dev/null +++ b/tests/test-mime.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +# Copyright (C) 2006, Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +from sugar import objects + +print objects.mime.get_from_filename('test.pdf') |