~andreserl/maas/fix_virsh_template

« back to all changes in this revision

Viewing changes to src/maasserver/tests/test_views_settings.py

  • Committer: Tarmac
  • Author(s): Gavin Panella
  • Date: 2013-03-07 16:24:33 UTC
  • mfrom: (1450.2.5 username-fuzzing)
  • Revision ID: tarmac-20130307162433-sxpxfe2gpfvsjvve
[r=rvb][bug=1152211][author=allenap] Ensure that users created by the factory have a username drawn from the full range of valid characters.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        # "Add a user" link.
60
60
        self.assertIn(reverse('accounts-add'), all_links)
61
61
        for user in users:
62
 
            rows = tab.cssselect('tr#%s' % user.username)
 
62
            rows = tab.cssselect('tr#"%s"' % user.username)
63
63
            # Only one row for the user.
64
64
            self.assertEqual(1, len(rows))
65
65
            row = rows[0]