'Takes the test options and returns the appropriate flags
for the command.'

@property
def test_options_flags(self):

    opts = []
    if self.failed_only:
        opts.append('--failed')
    env_fail_fast_set = (('TESTS_FAIL_FAST' in os.environ) and os.environ['TEST_FAIL_FAST'])
    if (self.fail_fast or env_fail_fast_set):
        opts.append('--stop')
    if self.use_ids:
        opts.append('--with-id')
    return opts
