Merge "Implement node equality" into feature/zuulv3
diff --git a/zuul/model.py b/zuul/model.py
index 00740cb..41e626f 100644
--- a/zuul/model.py
+++ b/zuul/model.py
@@ -404,6 +404,16 @@
     def __repr__(self):
         return '<Node %s %s:%s>' % (self.id, self.name, self.image)
 
+    def __ne__(self, other):
+        return not self.__eq__(other)
+
+    def __eq__(self, other):
+        if not isinstance(other, Node):
+            return False
+        return (self.name == other.name and
+                self.image == other.image and
+                self.id == other.id)
+
     def toDict(self):
         d = {}
         d['state'] = self.state