~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/tests/test_bugwatch_views.py

Test fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
            "bugWatchIsUnlinked() returned True though there is a task "
40
40
            "linked to the watch.")
41
41
 
42
 
    def test_cannot_delete_watch_if_linked_to_coment(self):
 
42
    def test_cannot_delete_watch_if_linked_to_comment(self):
43
43
        # It isn't possible to delete a bug watch that's linked to a bug
44
44
        # comment.
45
45
        message = getUtility(IMessageSet).fromText(
46
 
            "Example message", "With some example content to read.")
 
46
            "Example message", "With some example content to read.",
 
47
            owner=self.person)
47
48
        # We need to log in as an admin here as only admins can link a
48
49
        # watch to a comment.
49
50
        login(ADMIN_EMAIL)