示例#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')