コード例 #1
0
 def test_invalid_json(self):
     pkg = Package({'odi-certificate': 'INVALID'})
     assert_equal(False, has_certificate(pkg))
コード例 #2
0
 def test_valid_json(self):
     pkg = Package({'odi-certificate': json.dumps(cert)})
     assert_equal(True, has_certificate(pkg))
コード例 #3
0
 def test_no_certificate(self):
     pkg = Package({})
     assert_equal(False, has_certificate(pkg))
コード例 #4
0
 def test_invalid_json(self):
     pkg = Package({'odi-certificate': 'INVALID'})
     assert_equal(False, has_certificate(pkg))
コード例 #5
0
 def test_valid_json(self):
     pkg = Package({'odi-certificate': json.dumps(cert)})
     assert_equal(True, has_certificate(pkg))
コード例 #6
0
 def test_no_certificate(self):
     pkg = Package({})
     assert_equal(False, has_certificate(pkg))