Asserts that the block_test module's block has a given weight.
$weight: The expected weight.
function assertWeight($weight) {
$db_weight = db_query('SELECT weight FROM {block} WHERE module = :module AND delta = :delta', array(
':module' => 'block_test',
':delta' => 'test_html_id',
))
->fetchField();
// By casting to string the assert fails on FALSE.
$this
->assertIdentical((string) $db_weight, (string) $weight);
}