~mmcg069/software-center/tweaks

« back to all changes in this revision

Viewing changes to test/test_where_is_it.py

  • Committer: Michael Vogt
  • Date: 2011-05-18 08:26:04 UTC
  • mto: This revision was merged to the branch mainline in revision 1789.
  • Revision ID: michael.vogt@ubuntu.com-20110518082604-00wiq50tjd9vedz6
tests/: make pyflakes clean, fixup test_build_from_software_center_agent()

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
 
 
3
import os
3
4
import sys
4
5
import unittest
5
6
sys.path.insert(0,"../")
6
7
 
7
 
from softwarecenter.enums import *
8
 
from softwarecenter.utils import *
9
8
from softwarecenter.paths import XAPIAN_BASE_PATH
10
 
 
 
9
from softwarecenter.utils import GMenuSearcher
11
10
from softwarecenter.db.pkginfo import get_pkg_info
12
11
from softwarecenter.db.database import StoreDatabase
13
 
from softwarecenter.db.application import Application, AppDetails
 
12
from softwarecenter.db.application import Application
14
13
 
15
 
import gmenu
16
14
 
17
15
class TestWhereIsit(unittest.TestCase):
18
16
    """ tests the "where is it in the menu" code """
19
17
 
20
18
    def setUp(self):
21
 
        datadir = "../data"
22
19
        cache = get_pkg_info()
23
20
        cache.open()
24
21
        xapian_base_path = XAPIAN_BASE_PATH