1 # -*- test-case-name: buildbot.test.test_util -*-
3 from twisted
.trial
import unittest
5 from buildbot
import util
8 class Foo(util
.ComparableMixin
):
9 compare_attrs
= ["a", "b"]
11 def __init__(self
, a
, b
, c
):
12 self
.a
, self
.b
, self
.c
= a
,b
,c
15 class Bar(Foo
, util
.ComparableMixin
):
16 compare_attrs
= ["b", "c"]
18 class Compare(unittest
.TestCase
):
19 def testCompare(self
):
24 self
.failUnless(f1
== f2
)