def _assert_default_entity_json_no_metadata(self, entity): ''' Asserts that the entity passed in matches the default entity. ''' self.assertEqual(entity.age, '39') self.assertEqual(entity.sex, 'male') self.assertEqual(entity.married, True) self.assertEqual(entity.deceased, False) self.assertFalse(hasattr(entity, "optional")) self.assertFalse(hasattr(entity, "aquarius")) self.assertEqual(entity.ratio, 3.1) self.assertEqual(entity.evenratio, 3.0) self.assertEqual(entity.large, '933311100') self.assertEqual(entity.Birthday, '1973-10-04T00:00:00Z') self.assertEqual(entity.birthday, '1970-10-04T00:00:00Z') self.assertEqual(entity.binary, _encode_base64(b'binary')) self.assertIsInstance(entity.other, EntityProperty) self.assertEqual(entity.other.type, EdmType.INT32) self.assertEqual(entity.other.value, 20) self.assertEqual(entity.clsid, 'c9da6455-213d-42c9-9a79-3e9149a57833') self.assertTrue(hasattr(entity, "Timestamp")) self.assertIsInstance(entity.Timestamp, datetime) self.assertIsNotNone(entity.etag)