def test_entity_collection_empty(self): anydata = EntityCollection() self.assertEqual(len(anydata), 0) self.assertEqual(format(anydata), "Entities in EntityCollection: []")
def test_add_unsupported(self): anydata = EntityCollection() anydata.append('native') self.assertEqual(len(anydata), 0)