def test_get_user_roles(self):
    user = mock.MagicMock()
    user.is_anonymous = False
    roles = self.appbuilder.sm.find_role('Admin')
    user.roles = roles
    self.assertEqual(self.security_manager.get_user_roles(user), roles)
def test_get_user_roles(self):
    user = mock.MagicMock()
    user.is_anonymous = False
    roles = self.appbuilder.sm.find_role('Admin')
    user.roles = roles
    self.assertEqual(self.security_manager.get_user_roles(user), roles)