test code for django