~mvo/software-center/size-calculation-via-aptdaemon

« back to all changes in this revision

Viewing changes to tests/test_testutils.py

  • Committer: Michael Vogt
  • Date: 2012-06-25 09:52:58 UTC
  • mfrom: (2989.22.39 software-center)
  • Revision ID: michael.vogt@ubuntu.com-20120625095258-7m2j5d8rsfqe9u0p
merged trunk and resolved conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
2
 
 
3
 
import logging
4
1
import unittest
5
2
 
6
3
import dbus
7
4
import time
8
5
from gi.repository import GObject
9
6
 
10
 
from testutils import setup_test_env
 
7
from tests.utils import (
 
8
    setup_test_env,
 
9
    start_dummy_backend,
 
10
    stop_dummy_backend,
 
11
)
11
12
setup_test_env()
12
13
 
13
14
from softwarecenter.db.application import Application
14
 
from softwarecenter.testutils import start_dummy_backend, stop_dummy_backend
15
15
from softwarecenter.backend.installbackend_impl.aptd import get_dbus_bus
16
16
 
17
17
 
43
43
        backend = get_install_backend()
44
44
        backend.install(Application("2vcard", ""), iconname="")
45
45
        self._p()
46
 
        
 
46
 
47
47
    def _p(self):
48
48
        context = GObject.main_context_default()
49
49
        for i in range(10):
53
53
 
54
54
 
55
55
if __name__ == "__main__":
56
 
    logging.basicConfig(level=logging.DEBUG)
57
56
    unittest.main()