~nataliabidart/software-center/winged-migration

« back to all changes in this revision

Viewing changes to tests/test_gwibber.py

  • Committer: Natalia B. Bidart
  • Date: 2012-05-30 18:39:55 UTC
  • mto: This revision was merged to the branch mainline in revision 3030.
  • Revision ID: natalia.bidart@canonical.com-20120530183955-zbnjczayktmmg5tv
- Initial test cleanup:
  - Renamed test/ dir to tests/.
  - Isolated test code into tests/ directory, including moving all the
    get_test_window_foo from the gtk3 production modules to
    tests/gtk3/windows.py module.
  - Removed all the calls to Gtk.main() in gtk3 tests since that blocks the
    execution of the suite.
  - Pep8 and pyflakes fixes in the files already modified in this branch.
  - Minor bug fix in the softwarecenter/log.py module when trying to create a
    log dir with proper perms.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
2
 
 
3
1
import os
4
2
import unittest
5
3
 
6
 
from testutils import setup_test_env
 
4
from tests.utils import (
 
5
    setup_test_env,
 
6
)
7
7
setup_test_env()
8
8
 
9
9
class TestGwibber(unittest.TestCase):
10
 
    """ tests the "where is it in the menu" code """
11
 
 
12
 
    def setUp(self):
13
 
        pass
 
10
    """Tests the "where is it in the menu" code."""
14
11
 
15
12
    def test_gwibber_helper_mock(self):
16
13
        from softwarecenter.gwibber_helper import GwibberHelperMock
50
47
        service.send_message ("test")
51
48
 
52
49
if __name__ == "__main__":
53
 
    import logging
54
 
    logging.basicConfig(level=logging.DEBUG)
55
50
    unittest.main()