

def test_service_inactive():
    package_install('cassandra', True, ['--package-version=0.2.0-1'])
    time.sleep(5)
    get_services(3)
    assert_command(['dcos', 'marathon', 'group', 'remove', '/cassandra'])
    watch_all_deployments()
    time.sleep(5)
    get_services(2)
    services = get_services(args=['--inactive'])
    assert (len(services) >= 3)
    for framework in services:
        if (services['name'] == 'cassandra.dcos'):
            service_shutdown(framework['id'])
    get_services(2, ['--inactive'])
    delete_zk_node('cassandra-mesos')
    package_uninstall('cassandra')

dataset/ETHPy150Open dcos/dcos-cli/cli/tests/integrations/test_service.py test_service_inactive/VarMisuse@93/136 `framework`->`services`