示例#1
0
    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, ())
示例#2
0
 def test_unicode(self):
     iam = IAMAccount(user_id="test")
     self.assertEqual("test", iam.__unicode__())