def test_DefaultName_set(self): def_name = 'MyDefaultName' c = copyright.Copyright() c.DefaultName = def_name self.assertEqual(def_name, c.DefaultName)
def test_init_default_name_kw(self): def_name = 'MyDefaultName' c = copyright.Copyright(default_name=def_name) self.assertEqual(def_name, c.DefaultName)
def test_init_default_name_TypeError(self): with self.assertRaises(TypeError): c = copyright.Copyright(0)
def test_init(self): c = copyright.Copyright() self.assertEqual(copyright.Copyright, type(c)) self.assertEqual('{{AuthorName}}', c.DefaultName) self.assertEqual(copyright.Copyright.DEFAULT_NAME, c.DefaultName)