def testConstructor_020(self): """ Test assignment of databases attribute, [] value. """ mysql = MysqlConfig() self.assertEqual(None, mysql.databases) mysql.databases = [] self.assertEqual([], mysql.databases)
def testConstructor_021(self): """ Test assignment of databases attribute, single valid entry. """ mysql = MysqlConfig() self.assertEqual(None, mysql.databases) mysql.databases = [ "/whatever", ] self.assertEqual(["/whatever"], mysql.databases) mysql.databases.append("/stuff") self.assertEqual(["/whatever", "/stuff"], mysql.databases)