def test_class_variables(self): BaseCClass.cNamespace().hello = "BooYa!" StringListTest.cNamespace()["pow"] = "Badonkadonk!" with self.assertRaises(AssertionError): StringListTest.cNamespace().pow = "Badonkadonka!" with self.assertRaises(LookupError): self.assertFalse(BaseCClass.cNamespace()["pow"]) with self.assertRaises(AttributeError): self.assertFalse(StringListTest.cNamespace().hello) self.assertEqual(StringListTest.cNamespace().pow, StringListTest.cNamespace()["pow"])