def test_database_support():
    "Tests creation and manipulation of databases."
    # Test ability to create database.
    db = Database()
    # Test creating and retrieving database tables.
    db.create('persons', Table(('Name', str), ('Credit', int)))
    db.create('mapdata', (('time', float), ('place', complex)))
    db.print()
    db.persons.insert('Marty', 7 ** 4)
    db.persons.insert(Name='Haddock')
    db.persons.print()
Tests creation and manipulation of databases.
recipes/Python/577825_Rudimentary_Database_Engine/recipe-577825.py