diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:36:58 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:37:00 +0900 |
commit | 188514abf089f6c3bf73469e83525f3519f15ede (patch) | |
tree | aef6a890adbf5572bf779c92fe98cb69b2b34636 /tests/test_overrides.py | |
parent | dd20fe51cd566c8c20bcbb96901c766a385d0a11 (diff) | |
download | pygobject2-188514abf089f6c3bf73469e83525f3519f15ede.tar.gz pygobject2-188514abf089f6c3bf73469e83525f3519f15ede.tar.bz2 pygobject2-188514abf089f6c3bf73469e83525f3519f15ede.zip |
Imported Upstream version 2.28.6upstream/2.28.6
Change-Id: Ic975e9ed81a8d0c60fea3fadf17e4172a6c19009
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'tests/test_overrides.py')
-rw-r--r-- | tests/test_overrides.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_overrides.py b/tests/test_overrides.py index 57abdfd..47f38a3 100644 --- a/tests/test_overrides.py +++ b/tests/test_overrides.py @@ -359,10 +359,14 @@ class TestGdk(unittest.TestCase): self.assertEquals(color.red, 100) self.assertEquals(color.green, 200) self.assertEquals(color.blue, 300) + self.assertEquals(color, Gdk.Color(100, 200, 300)) + self.assertNotEquals(color, Gdk.Color(1, 2, 3)) def test_rgba(self): self.assertEquals(Gdk.RGBA, overrides.Gdk.RGBA) rgba = Gdk.RGBA(0.1, 0.2, 0.3, 0.4) + self.assertEquals(rgba, Gdk.RGBA(0.1, 0.2, 0.3, 0.4)) + self.assertNotEquals(rgba, Gdk.RGBA(0.0, 0.2, 0.3, 0.4)) self.assertEquals(rgba.red, 0.1) self.assertEquals(rgba.green, 0.2) self.assertEquals(rgba.blue, 0.3) |