~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to tests/test_color.py

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-07 11:08:47 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107110847-f5av7e1ttudh7ra6
Tags: 2.17.0-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    def test_color_from_hsv(self):
48
48
        self.assertEqual(gtk.gdk.Color('red'), gtk.gdk.color_from_hsv(0.0, 1.0, 1.0))
49
49
 
 
50
    # See bug #594347.
 
51
    def test_color_from_hsv_kwargs(self):
 
52
        self.assertEqual(gtk.gdk.Color('black'), gtk.gdk.color_from_hsv(hue=0.0,
 
53
                                                                        saturation=0.0,
 
54
                                                                        value=0.0))
 
55
 
50
56
    def test_float_attributes(self):
51
57
        c = gtk.gdk.Color(0, 10000, 65535)
52
58
        self.assertAlmostEqual(c.red_float, 0.0)