Exemple #1
0
 def test_make_hashkey_no_args(self):
     with self.assertRaises(TypeError):
         cert = CertificatePDF(self.user, self.course_id, self.debug,
                               self.noop, self.file_prefix, self.exclude)
         cert._make_hashkey()
 def test_make_hashkey_no_args(self):
     with self.assertRaises(TypeError):
         cert = CertificatePDF(self.user, self.course_id, self.debug,
                               self.noop, self.file_prefix, self.exclude)
         cert._make_hashkey()
Exemple #3
0
 def test_make_hashkey(self):
     cert = CertificatePDF(self.user, self.course_id, self.debug, self.noop,
                           self.file_prefix, self.exclude)
     result = cert._make_hashkey(self.seed)
     self.assertRegexpMatches(result, '[a-zA-Z0-9]{32}')
 def test_make_hashkey(self):
     cert = CertificatePDF(self.user, self.course_id, self.debug,
                           self.noop, self.file_prefix, self.exclude)
     result = cert._make_hashkey(self.seed)
     self.assertRegexpMatches(result, '[a-zA-Z0-9]{32}')