'``task_enable_flocker_agent`` for the \'ubuntu-14.04\' distribution
returns a sequence of \'service restart\' commands for each agent
when the action passed down is "restart" (used for managed provider).'

def test_ubuntu_sequence_managed(self):

    distribution = u'ubuntu-14.04'
    commands = task_enable_flocker_agent(distribution=distribution, action='restart')
    expected_sequence = sequence([run(command='service    flocker-dataset-agent    restart')])
    self.assertEqual(commands, expected_sequence)
