~mars/launchpad/ghost-line

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/webapp/ftests/test_annotations.py

  • Committer: Tarmac
  • Author(s): Gavin Panella, Gary Poster, Julian Edwards, Tim Penhey, Deryck Hodge, Jonathan Lange, Aaron Bentley, Robert Collins, j.c.sackett, Brad Crittenden, Maris Fogels, Launchpad Patch Queue Manager, Francis J. Lacoste, Curtis Hovey, Steve Kowalik, Jeroen Vermeulen, Brian Murray, Abel Deuring
  • Date: 2010-11-29 16:16:35 UTC
  • mfrom: (11782.11.1 test-ghost-update)
  • Revision ID: tarmac@sapote-20101129161635-occ0ourfm1y05rts
Test commit of r11783

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
        connection = db.open()
18
18
        root = connection.root()
19
19
        handle_before_traversal(root)
20
 
        from canonical.launchpad.interfaces import IZODBAnnotation
 
20
        from canonical.launchpad.interfaces.launchpad import IZODBAnnotation
21
21
        from lp.bugs.model.bug import Bug
22
22
        from lp.registry.model.product import Product
23
23
        bug = Bug.get(1)
39
39
        self.assertEquals(all_annotations['Product']['2']['soyuz.message'],
40
40
                          'a message on a product')
41
41
 
 
42
 
42
43
def test_suite():
43
44
    suite = unittest.TestSuite()
44
45
    # XXX daniels 2004-12-14:
47
48
    #     tests: the rdb transaction is closed too early.
48
49
    ##suite.addTest(unittest.makeSuite(TestAnnotations))
49
50
    return suite
50