File: basics.py

package info (click to toggle)
python-box2d 2.3.2~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,596 kB
  • ctags: 5,116
  • sloc: python: 14,384; cpp: 13,393; makefile: 8; sh: 6
file content (18 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
import sys

class testBasic (unittest.TestCase):
#    def setUp(self):
#        pass

    def test_import(self):
        try:
            import Box2D
        except ImportError:
            self.fail("Unable to import Box2D library (%s)" % sys.exc_info()[1])

if __name__ == '__main__':
    unittest.main()