def METHOD_NAME(self):
    w1 = CompilerWarning()
    w2 = CompilerWarning()
    s = set()
    # Empty warnings should be equal.
    self.assertEqual(w1, w2)
    s.add(w1)
    s.add(w2)
    self.assertEqual(len(s), 1)
    w1["filename"] = "/foo.c"
    w2["filename"] = "/bar.c"
    self.assertNotEqual(w1, w2)
    s = set()
    s.add(w1)
    s.add(w2)
    self.assertEqual(len(s), 2)
    w1["filename"] = "/foo.c"
    w1["line"] = 5
    w2["line"] = 5
    w2["filename"] = "/foo.c"
    w1["column"] = 3
    w2["column"] = 3
    self.assertEqual(w1, w2)