def METHOD_NAME(self):
    # Create pre-existing pickle file.
    stored_model = Model(count=52)
    filename = os.path.join(self.tmpdir, "model.pkl")
    with open(filename, "wb") as pickled_object:
        pickle.dump(stored_model, pickled_object)
    model = Model(count=19)
    with mock.patch.object(self.toolkit, "view_application"):
        with self.assertWarns(DeprecationWarning):
            model.configure_traits(filename=filename)
    self.assertEqual(model.count, 52)