def test_resource_append(self): ''' test that the resource append works correctly ''' keys = ['red', 'blue', 'green', 'yellow', 'orange'] cake = CollectionResource(keys[:-2]) item = CollectionResource(keys[-2:]) cake.append(item) actual = CollectionResource(keys) self.assertEqual(actual.value, cake.value)