~ubuntu-branches/ubuntu/trusty/python-enable/trusty

« back to all changes in this revision

Viewing changes to enthought/enable/tests/coordinate_box_test_case.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2011-04-06 19:28:09 UTC
  • mfrom: (8.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110406192809-20ikzqm4uj9qxwuu
Tags: 3.4.1-2
d/rules: fix pyshared directory path

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
        self.assert_(c.x == 0.0)
11
11
        self.assert_(c.y == 0.0)
12
12
        return
13
 
    
 
13
 
14
14
    def check_bounds(self):
15
15
        c = CoordinateBox(bounds=[50.0, 60.0])
16
16
        self.assert_(c.width == c.bounds[0])
20
20
        self.assert_(c.x2 == 49.0)
21
21
        self.assert_(c.y2 == 59.0)
22
22
        return
23
 
    
 
23
 
24
24
    def check_is_in(self):
25
25
        c = CoordinateBox(x=10, y=20)
26
26
        c.width=100