def test_eq_not_implemented(self):
     descr = ObjectDescriptor.from_object('a', "str")
     self.assertFalse(descr == 1)
 def test_eq(self):
     descr1 = ObjectDescriptor.from_object('a', "str")
     descr2 = ObjectDescriptor.from_object('a', "str")
     self.assertTrue(descr1 == descr2)
 def test_from_object_none(self):
     self.assertRaises(AssertionError,
                       lambda: ObjectDescriptor.from_object('a', None))
 def test_repr(self):
     descr = ObjectDescriptor.from_object('a', "value")
     self.assertEqual(str(descr), '<ObjectDescriptor> a: str')
 def test_from_object(self):
     descr = ObjectDescriptor.from_object('a', "str")
     self.assertEqual(ObjectDescriptor(None, 'a', str, {}), descr)