~james-w/pkgme-devportal/remove-tempdir-after-use

« back to all changes in this revision

Viewing changes to devportalbinary/tests/test_binary_backend.py

  • Committer: Tarmac
  • Author(s): James Westby, James Westby
  • Date: 2011-12-13 12:53:41 UTC
  • mfrom: (18.2.3 pdf-backend)
  • Revision ID: tarmac@server-3224-20111213125341-z46ucgmzy632jnte
[r=jml] Add a pdf backend.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
from devportalbinary.binary import (
21
21
    CATEGORIES,
22
22
    DEPENDS,
23
 
    get_desktop_file,
 
23
    get_binary_desktop_file,
24
24
    get_install_file,
25
25
    guess_dependencies,
26
26
    METADATA_FILE,
99
99
            install_file)
100
100
 
101
101
    def test_extra_files_desktop_file(self):
102
 
        # We create an 'install' file that tells debhelper to just copy
103
 
        # everything to opt.
 
102
        # We create an 'desktop' file that launches the guessed binary
104
103
        tempdir = self.useFixture(TempdirFixture())
105
104
        package_name = self.getUniqueString()
106
105
        tagline = self.getUniqueString()
114
113
        # We need to create an executable in order to be able to generate a
115
114
        # desktop.
116
115
        tempdir.touch('executable', 0755)
117
 
        expected_desktop_file = get_desktop_file(
 
116
        expected_desktop_file = get_binary_desktop_file(
118
117
            package_name, tempdir.path, tagline=tagline,
119
118
            categories=categories).get_contents()
120
119
        backend = ExternalHelpersBackend(BACKEND_NAME, backend_dir)