File: newdivision_test.py

package info (click to toggle)
shiboken 1.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,248 kB
  • ctags: 8,532
  • sloc: cpp: 50,923; python: 5,950; xml: 2,354; makefile: 144; ansic: 136
file content (14 lines) | stat: -rw-r--r-- 267 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from __future__ import division
from sample import *
import unittest

class TestNewDivision(unittest.TestCase):

    def testIt(self):
        p = Point(4, 4)
        p2 = p/2
        self.assertEqual(p2, Point(2, 2))

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