def test_user_id_must_be_unique(self): iam = IAMAccount(user_id="test") iam.save() iam = IAMAccount(user_id="test") self.assertRaises(IntegrityError, iam.save, ())
def test_unicode(self): iam = IAMAccount(user_id="test") self.assertEqual("test", iam.__unicode__())