MCPcopy Index your code
hub / github.com/python/cpython / test_dot_signature

Method test_dot_signature

Lib/test/test_turtle.py:651–672  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

649 self.assertFalse(self.turtle._creatingPoly)
650
651 def test_dot_signature(self):
652 self.turtle.dot()
653 self.turtle.dot(10)
654 self.turtle.dot(size=10)
655 self.turtle.dot((0, 0, 0))
656 self.turtle.dot(size=(0, 0, 0))
657 self.turtle.dot("blue")
658 self.turtle.dot("")
659 self.turtle.dot(size="blue")
660 self.turtle.dot(20, "blue")
661 self.turtle.dot(20, "blue")
662 self.turtle.dot(20, (0, 0, 0))
663 self.turtle.dot(20, 0, 0, 0)
664 with self.assertRaises(TypeError):
665 self.turtle.dot(color="blue")
666 self.assertRaises(turtle.TurtleGraphicsError, self.turtle.dot, "_not_a_color_")
667 self.assertRaises(turtle.TurtleGraphicsError, self.turtle.dot, 0, (0, 0, 0, 0))
668 self.assertRaises(turtle.TurtleGraphicsError, self.turtle.dot, 0, 0, 0, 0, 0)
669 self.assertRaises(turtle.TurtleGraphicsError, self.turtle.dot, 0, (-1, 0, 0))
670 self.assertRaises(turtle.TurtleGraphicsError, self.turtle.dot, 0, -1, 0, 0)
671 self.assertRaises(turtle.TurtleGraphicsError, self.turtle.dot, 0, (0, 257, 0))
672 self.assertRaises(turtle.TurtleGraphicsError, self.turtle.dot, 0, 0, 257, 0)
673
674class TestModuleLevel(unittest.TestCase):
675 def test_all_signatures(self):

Callers

nothing calls this directly

Calls 2

dotMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected