~ubuntu-branches/ubuntu/maverick/pygame/maverick

« back to all changes in this revision

Viewing changes to test/run_tests__tests/timeout/fake_2_test.py

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-14 17:02:11 UTC
  • mfrom: (1.3.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100114170211-21eop2ja7mr9vdcr
Tags: 1.9.1release-0ubuntu1
* New upstream version (lp: #433304)
* debian/control:
  - build-depends on libportmidi-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if __name__ == '__main__':
 
2
    import sys
 
3
    import os
 
4
    pkg_dir = (os.path.split(
 
5
                   os.path.split(
 
6
                       os.path.split(
 
7
                           os.path.abspath(__file__))[0])[0])[0])
 
8
    parent_dir, pkg_name = os.path.split(pkg_dir)
 
9
    is_pygame_pkg = (pkg_name == 'tests' and
 
10
                     os.path.split(parent_dir)[1] == 'pygame')
 
11
    if not is_pygame_pkg:
 
12
        sys.path.insert(0, parent_dir)
 
13
else:
 
14
    is_pygame_pkg = __name__.startswith('pygame.tests.')
 
15
 
 
16
if is_pygame_pkg:
 
17
    from pygame.tests import test_utils
 
18
    from pygame.tests.test_utils import unittest
 
19
else:
 
20
    from test import test_utils
 
21
    from test.test_utils import unittest
 
22
 
 
23
class KeyModuleTest(unittest.TestCase):
 
24
    def test_get_focused(self):
 
25
        self.assert_(True) 
 
26
 
 
27
    def test_get_mods(self):
 
28
        self.assert_(True) 
 
29
 
 
30
    def test_get_pressed(self):
 
31
        self.assert_(True) 
 
32
 
 
33
    def test_name(self):
 
34
        self.assert_(True) 
 
35
 
 
36
    def test_set_mods(self):
 
37
        self.assert_(True) 
 
38
 
 
39
    def test_set_repeat(self):
 
40
        self.assert_(True) 
 
41
 
 
42
if __name__ == '__main__':
 
43
    unittest.main()
 
 
b'\\ No newline at end of file'