Unit testing helpers - agate 1.12.0 documentation

Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# Unit testing helpers

class agate.AgateTestCase(methodName='runTest')

  Bases: `TestCase`

  Unittest case for quickly asserting logic about tables.

  assertColumnNames(table, names)

    Verify the column names in the given table match what is expected.

  assertColumnTypes(table, types)

    Verify the column types in the given table are of the expected types.

  assertRows(table, rows)

    Verify the row data in the given table match what is expected.

  assertRowNames(table, names)

    Verify the row names in the given table match what is expected.