The assessment levied by this chapter is mandatory; and failure or refusal to pay the same shall constitute a misdemeanor.