Beispiel #1
0
 def test_rectangle_knows_points_in(self):
     includes_(self.origin_rect, (50,50))
Beispiel #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))
Beispiel #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))
Beispiel #4
0
 def test_perms_caps_with_obt(self):
     includes_(self.a.permutations(), 'A.OBT')
Beispiel #5
0
 def test_perms_adds_obt(self):
     includes_(self.a.permutations(), 'a.obt')
Beispiel #6
0
 def test_perms_tries_upcasing(self):
     includes_(self.a.permutations(), 'A')
Beispiel #7
0
 def test_perms_contain_self(self):
     includes_(self.a.permutations(), 'a')