'Testing equivalence.'

def test_eq(self):

    p = fromstr(u'POINT(5    23)')
    self.assertEqual(p, p.wkt)
    self.assertNotEqual(p, u'foo')
    ls = fromstr(u'LINESTRING(0    0,    1    1,    5    5)')
    self.assertEqual(ls, ls.wkt)
    self.assertNotEqual(p, u'bar')
    for g in (p, ls):
        self.assertNotEqual(g, None)
        self.assertNotEqual(g, {u'foo': u'bar'})
        self.assertNotEqual(g, False)
