예제 #1
0
 def test_rectangle_knows_points_in(self):
     includes_(self.origin_rect, (50,50))
예제 #2
0
 def test_ellipse_knows_points_in(self):
     includes_(self.ellipse, (50,50))
     includes_(self.ellipse, (70,50))
     includes_(self.ellipse, (30,50))
     includes_(self.ellipse, (50,90))
     includes_(self.ellipse, (50,10))
예제 #3
0
 def test_rectangle_knows_points_on_edge(self):
     includes_(self.origin_rect, (0,0))
     includes_(self.origin_rect, (0,98))
     includes_(self.origin_rect, (99,98))
     includes_(self.origin_rect, (99, 0))
예제 #4
0
 def test_perms_caps_with_obt(self):
     includes_(self.a.permutations(), 'A.OBT')
예제 #5
0
 def test_perms_adds_obt(self):
     includes_(self.a.permutations(), 'a.obt')
예제 #6
0
 def test_perms_tries_upcasing(self):
     includes_(self.a.permutations(), 'A')
예제 #7
0
 def test_perms_contain_self(self):
     includes_(self.a.permutations(), 'a')