Esempio n. 1
0
    def test_file_dict(self):
        test_fd = base.fileDicts[0].copy()

        message = json.dumps(test_fd)
        validateMessage(message, fileDict)

        test_fd['size'] = "not-valid"
        message = json.dumps(test_fd)
        self.failUnlessRaises(GLTypeError, validateMessage, message, fileDict)
Esempio n. 2
0
 def test_admin_statistics(self):
     message = json.dumps(base.adminStatisticsDict)
     validateMessage(message, adminStatisticsDict)
Esempio n. 3
0
 def test_receiver_dict(self):
     message = json.dumps(base.receiverDescriptionDicts[0])
     validateMessage(message, receiverDescriptionDict)
Esempio n. 4
0
 def test_folder_dict(self):
     message = json.dumps(base.folderDict)
     validateMessage(message, folderDict)