After looking at these tests again, yes, I agree. 
No point of testing model object creation since it's Django's job.
Testing the methods on the Model would be more useful I guess. 

Cheers,

Tianyi
On Tuesday, 15 July 2014 17:59:04 UTC+1, esauro wrote:
>
> Imho all but 4 are redundant. That is already tested in django itself.
>
> Regards,
> Esau Rodriguez.
> El 15/07/2014 16:48, "Tianyi Wang" <[email protected] <javascript:>> 
> escribió:
>
>> Hi,
>>
>> I have a very simple model:
>>
>> class Action(models.Model):
>>     name = models.CharField('Name', max_length=100)
>>     deleted = models.BooleanField('Deleted', default=False)
>>
>>     def __unicode__(self):
>>         return self.name
>>
>>     class Meta:
>>         ordering = ('name',)
>>
>> My tests for this model is at 
>> https://gist.github.com/tianyi33/f8c327d8b539a7585cec
>>
>> Do you think my tests are reasonable or some of them are redundant? 
>>
>> Thanks
>>
>> Tianyi
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/dbe37d7f-c9db-48c6-8757-6251689a1141%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/dbe37d7f-c9db-48c6-8757-6251689a1141%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6fc44af2-d3b3-4177-8fb6-907b491833dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to