Index: modules/simpletest/simpletest.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/simpletest.test,v
retrieving revision 1.12
diff -u -r1.12 simpletest.test
--- modules/simpletest/simpletest.test	2 Dec 2008 20:03:57 -0000	1.12
+++ modules/simpletest/simpletest.test	11 Dec 2008 08:49:30 -0000
@@ -46,6 +46,7 @@
       $this->drupalGet('node');
       $this->assertTrue($this->drupalGetHeader('Date'), t('An HTTP header was received.'));
       $this->assertTitle(variable_get('site_name', 'Drupal'), t('Site title matches.'));
+      $this->assertNoTitle('Foo', t('Site title does not match.'));
       // Make sure that we are locked out of the installer when prefixing
       // using the user-agent header. This is an important security check.
       global $base_url;
Index: modules/simpletest/drupal_web_test_case.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/drupal_web_test_case.php,v
retrieving revision 1.71
diff -u -r1.71 drupal_web_test_case.php
--- modules/simpletest/drupal_web_test_case.php	9 Dec 2008 11:09:26 -0000	1.71
+++ modules/simpletest/drupal_web_test_case.php	11 Dec 2008 08:49:30 -0000
@@ -1705,7 +1705,23 @@
    *   TRUE on pass, FALSE on fail.
    */
   protected function assertTitle($title, $message, $group = 'Other') {
-    return $this->assert($this->xpath('//title[text()="' . $title . '"]') !== FALSE, $message, $group);
+    return $this->assert($this->xpath('//title[text()="' . $title . '"]') != FALSE, $message, $group);
+  }
+
+  /**
+   * Pass if the page title is not the given string.
+   *
+   * @param $title
+   *   The string the title should be.
+   * @param $message
+   *   Message to display.
+   * @param $group
+   *   The group this message belongs to.
+   * @return
+   *   TRUE on pass, FALSE on fail.
+   */
+  protected function assertNoTitle($title, $message, $group = 'Other') {
+    return $this->assert($this->xpath('//title[text()="' . $title . '"]') == FALSE, $message, $group);
   }
 
   /**
