コード例 #1
0
ファイル: utils_test.py プロジェクト: google/upvote
 def testNotAssociated(self):
     user = test_utils.CreateUser()
     host = test_utils.CreateBit9Host(users=['someone_else'])
     self.assertFalse(model_utils.IsBit9HostAssociatedWithUser(host, user))
コード例 #2
0
ファイル: utils_test.py プロジェクト: google/upvote
 def testAssociated(self):
     user = test_utils.CreateUser()
     host = test_utils.CreateBit9Host(users=[user.nickname])
     self.assertTrue(model_utils.IsBit9HostAssociatedWithUser(host, user))