def testAddnews(self):
    self.assertNotError('add 0 subject: foo')
    self.assertRegexp('news', 'subject')
    self.assertNotError('add 0 subject2: foo2')
    self.assertRegexp('news', 'subject.*subject2')
    self.assertNotError('add 5 subject3: foo3')
    self.assertRegexp('news', 'subject3')
    print()
    print('Sleeping to expire the news item (testAddnews)')
    time.sleep(6)
    print('Done sleeping.')
    self.assertNotRegexp('news', 'subject3')
def testAddnews(self):
    self.assertNotError('add 0 subject: foo')
    self.assertRegexp('news', 'subject')
    self.assertNotError('add 0 subject2: foo2')
    self.assertRegexp('news', 'subject.*subject2')
    self.assertNotError('add 5 subject3: foo3')
    self.assertRegexp('news', 'subject3')
    print()
    print('Sleeping to expire the news item (testAddnews)')
    time.sleep(6)
    print('Done sleeping.')
    self.assertNotRegexp('news', 'subject3')