Beispiel #1
0
 def test_setting_and_saving_attributes(self):
     m = MyUser(username='******', email='*****@*****.**', password='******',
                tags='tag1 tag2')
     m.save()
     del m
     m = MyUser.objects.get(username='******')
     self.assertEquals(m.tags, 'tag1 tag2')
Beispiel #2
0
 def test_saving(self):
     m = MyUser(username='******', email='*****@*****.**', password='******',
                tags='tag1 tag2')
     m.save()
     self.assertEquals(MyUser.objects.filter(username='******').count(), 1)