Пример #1
0
 def test_protection_key_is_set(self):
     table = Table()
     table.protected = True
     key = table.get_attr(CN('table:protection-key'))
     self.assertIsNotNone(key, "protection-key not set")
     self.assertGreater(len(key), 8, "protection-key is too short")
Пример #2
0
 def test_protection_key_is_set(self):
     table = Table()
     table.protected = True
     key = table.get_attr(CN('table:protection-key'))
     self.assertIsNotNone(key, "protection-key not set")
     self.assertGreater(len(key), 8, "protection-key is too short")
Пример #3
0
 def test_set_protected(self):
     table = Table()
     table.protected = True
     self.assertTrue(table.protected)
     self.assertEqual(table.get_attr(CN('table:protected')), 'true',
                      'wrong tag name')
Пример #4
0
 def test_set_protected(self):
     table = Table()
     table.protected = True
     self.assertTrue(table.protected)
     self.assertEqual(table.get_attr(CN('table:protected')), 'true', 'wrong tag name')