'Assert that the given preference is acknowledged by the system'

def assertPrefIsValid(self, pref):

    self.assertItemsEqual(pref.keys(), ['user', 'key', 'value', 'url'])
    self.assertSelfReferential(pref)
    self.assertUserIsValid(pref['user'])
