def test_add_role_name(self): user = User("foo-user") user.add_role_name(u'manage-user') role = user.role_names()[0] self.assertEqual(u'manage-user', role)
def test_add_role_name(self): user = User("foo-user") user.add_role_name(u'manage-user') role = user.role_names()[0] assert u'manage-user' == role