Extract function assert_parse